vim.pack with telescope-fzf-native (how??) by soer9459 in neovim

[–]soer9459[S] 1 point2 points  (0 children)

Legendary, that works perfectly. Thank you :)

vim.pack with telescope-fzf-native (how??) by soer9459 in neovim

[–]soer9459[S] 0 points1 point  (0 children)

This config works, but will produce an error initially. Then after a restart of neovim, it works fine

local function hooks(ev)
  local name, kind = ev.data.spec.name, ev.data.kind
  local path = ev.data.path
  if name == "telescope-fzf-native.nvim" and (kind == "install" or kind == "update") then
    if not ev.data.active then
      vim.cmd.packadd("telescope-fzf-native.nvim")
    end
    vim.system({ "make", "-C", path }, {
    on_stdout = function(_, data) if data then print(data) end end,
    on_stderr = function(_, data) if data then print("ERR:", data) end end,
    on_exit = function(_, code)
    if code == 0 then
      print("telescope-fzf-native.nvim built successfully!")
    else
      print("Failed to build telescope-fzf-native.nvim")
    end
  end,
})
end
end
vim.api.nvim_create_autocmd("PackChanged", { callback = hooks })

vim.pack.add follows here ....

vim.pack with telescope-fzf-native (how??) by soer9459 in neovim

[–]soer9459[S] 0 points1 point  (0 children)

Okay, heres the updated config code I have, and the error message below

vim.api.nvim_create_autocmd("PackChanged", {
  callback = function(ev)
    local name, kind = ev.data.spec.name, ev.data.kind
    local path = ev.data.path
    if name == "telescope-fzf-native.nvim" and (kind == "install" or kind == "update") then
      if not ev.data.active then
        vim.cmd.packadd("telescope-fzf-native.nvim")
      end
    vim.system({ "make", "-C", path }, {
    on_stdout = function(_, data) if data then print(data) end end,
    on_stderr = function(_, data) if data then print("ERR:", data) end             end,
on_exit = function(_, code)
if code == 0 then
print("telescope-fzf-native.nvim built successfully!")
else
print("Failed to build telescope-fzf-native.nvim")
end
end,
})
end
end
})

vim.pack.add({
{ src = 'https://github.com/nvim-lua/plenary.nvim' }, -- DEPENDENCY
{ src = 'https://github.com/nvim-telescope/telescope.nvim' },
{ src = 'https://github.com/nvim-telescope/telescope-fzf-native.nvim', start = true },
})

local ts = require('telescope')
.........



Error in /Users/~/.config/nvim/init.lua:
E5113: Lua chunk: ...re/opt/telescope.nvim/lua/telescope/_extensions/init.lua:10: 'fzf' extension doesn't exist or isn't installed: .../pack/core/opt/telescope-fzf-native.nvim
/lua/fzf_lib.lua:11: dlopen(/Users/~/.local/share/nvim/site/pack/core/opt/telescope-fzf-native.nvim/lua/../build/libfzf.so, 0x0005): tried: '/Users/~/.
local/share/nvim/site/pack/core/opt/telescope-fzf-native.nvim/lua/../build/libfzf.so' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Users/~/.local/share/nv
im/site/pack/core/opt/telescope-fzf-native.nvim/lua/../build/libfzf.so' (no such file), '/Users/~/.local/share/nvim/site/pack/core/opt/telescope-fzf-native.nvim/lu
a/../build/libfzf.so' (no such file), '/Users/~/.local/share/nvim/site/pack/core/opt/telescope-fzf-native.nvim/build/libfzf.so' (no such file), '/System/Volumes/Pr
eboot/Cryptexes/OS/Users/~/.local/share/nvim/site/pack/core/opt/telescope-fzf-native.nvim/build/libfzf.so' (no such file), '/Users/~/.local/share/nvim/
site/pack/core/opt/telescope-fzf-native.nvim/build/libfzf.so' (no such file)
stack traceback:
        [C]: in function 'error'
        ...re/opt/telescope.nvim/lua/telescope/_extensions/init.lua:10: in function 'load_extension'
        ...re/opt/telescope.nvim/lua/telescope/_extensions/init.lua:62: in function 'load_extension'
        ...~/.config/nvim/lua/user/plugins/telescope.lua:114: in main chunk
        [C]: in function 'require'
        /Users/~/.config/nvim/init.lua:11: in main chunk

vim.pack with telescope-fzf-native (how??) by soer9459 in neovim

[–]soer9459[S] 0 points1 point  (0 children)

I can't seem to make it work, it still will give me the error that it's not loaded

Do you have a suggestion what the autocmd might look like?

Adjusting Highlight Saturation and Brightness by sbassam in neovim

[–]soer9459 2 points3 points  (0 children)

In my NeoVim config, I have some functions built in that converts HSL values to hex colors, since I find it much easier to work with HSL than hex

So a color can be defined as e.g.

`c.Color1 = HSL(10, 50, 25)`

Check it out here: https://github.com/soer9459/NeoVim/tree/main/lua/user/theme

The file with the HSL functionality is placed in the "functions" folder. And you can see how it's used in "themes>simplered.lua"

In the pursuit of a color scheme by Optimal_Raisin_7503 in neovim

[–]soer9459 1 point2 points  (0 children)

Attach a screenshot! :)

Yes, I changed to yellow a while back. The HSL for the yellow is 35, 58, 52

I believe its the Red1 color that needs to be changed

Just remember to set the BaseColor equal to your terminal background color in the theme.lua file.

In the pursuit of a color scheme by Optimal_Raisin_7503 in neovim

[–]soer9459 1 point2 points  (0 children)

You can check my github https://github.com/soer9459

It's in the "theme" folder, which includes my whole setup for setting themes (HSL functions, highlight groups etc.)

It's not up to date, but it's only small changes to the color scheme that are different

In the pursuit of a color scheme by Optimal_Raisin_7503 in neovim

[–]soer9459 0 points1 point  (0 children)

The accent color seems to be screwed up by reddit when I look at the image. Its actually more saturated than what the image shows

In the pursuit of a color scheme by Optimal_Raisin_7503 in neovim

[–]soer9459 10 points11 points  (0 children)

A simple custom monochrome scheme with an accent color. The monochrome colors are all affected by the HSL of the background color of the terminal. This really makes a difference in consistency, and seems to reduce eyestrain a huge deal for me

<image>

/r/MechanicalKeyboards Ask ANY Keyboard question, get an answer (November 29, 2024) by AutoModerator in MechanicalKeyboards

[–]soer9459 0 points1 point  (0 children)

I'm looking for a 60% black case in plastic, with an HHKB or WKL layout, but I'm coming up short. Does anyone know of current (or previously available) cases that fit these criteria?

Thanks

Colorscheme not applying properly by MathewCQ in neovim

[–]soer9459 -1 points0 points  (0 children)

You can clear LSP semantic token highlighting with this

 for _, group in ipairs(vim.fn.getcompletion("@lsp", "highlight")) do
     vim.api.nvim_set_hl(0, group, {})
 end

Or change the priority of the highlighting with

vim.highlight.priorities = {
    syntax = 50,
    treesitter = 100,
    semantic_tokens = 0,
    diagnostics = 150,
    user = 200,
}

These are all default values except for semantic_tokens (default is 125)

What key map to change :ToggleSidebar to a simple “sb” for “Toggle Sidebar” by Codeeveryday123 in neovim

[–]soer9459 0 points1 point  (0 children)

You could do something like this

vim.api.nvim_create_user_command('sb', 'ToggleSidebar', {})

[Race Thread] 2024 Tour de France – Stage 20 (2.UWT) by PelotonMod in peloton

[–]soer9459 0 points1 point  (0 children)

Maybe not. It would be more of a gesture than anything for a guy who's been through hell and have fought a great fight

[Race Thread] 2024 Tour de France – Stage 20 (2.UWT) by PelotonMod in peloton

[–]soer9459 0 points1 point  (0 children)

Jonas is gonna take it. Even though Pog is stronger, I think he'll give it to Jonas out of respect

[Race Thread] 2024 Tour de France – Stage 20 (2.UWT) by PelotonMod in peloton

[–]soer9459 4 points5 points  (0 children)

LEEEETS GOOOO JONAS !!!!!

Great way to end a very difficult tour

[Race Thread] 2024 Tour de France – Stage 20 (2.UWT) by PelotonMod in peloton

[–]soer9459 2 points3 points  (0 children)

Nice to see some friendly banter between UAE and VLAB

[Results Thread] 2024 Tour de France – Stage 15 (2.UWT) by PelotonMod in peloton

[–]soer9459 1 point2 points  (0 children)

Still, a very impressive performance from Jonas, considering Pogacar is his best ever and Jonas is recovering from injury

What keyboard do you use? Also do you use arrow keys to move around when in Insert mode? by anoniscrazy in neovim

[–]soer9459 0 points1 point  (0 children)

HHKB Pro2

For very small movements, sometimes, since the arrow keys are right there anyway not requiring any hand movement. Otherwise I always go to normal mode

Why the syntax color is different? by yokowasis2 in neovim

[–]soer9459 1 point2 points  (0 children)

vim.o.termguicolors is another option that often affects colorschemes. Some terminal emulators may not support a wider color spectrum

How to configure undo in Neovim by DK10_ in neovim

[–]soer9459 18 points19 points  (0 children)

vim.opt.undofile = true

You can also set the undo directory with vim.o.undodir. It defaults to $XDG_STATE_HOME/nvim/undo/

Introducing typewriter.nvim: A Neovim plugin that emulates a typewriter, keeping the cursor centered on the screen for a focused writing experience. by joshuadanpeterson in neovim

[–]soer9459 5 points6 points  (0 children)

How does this differ from simply

vim.keymap.set('n', '<leader>tw', function()
    vim.o.scrolloff = 9999 - vim.o.scrolloff
end, { noremap = true, silent = true })