nvim fixings

This commit is contained in:
Daniel Lundin 2024-12-11 20:15:15 +01:00
parent 49d4bbd7c1
commit 8b46fa253d
Signed by: dln
SSH key fingerprint: SHA256:dQy1Xj3UiqJYpKR5ggQ2bxgz4jCH8IF+k3AB8o0kmdI

View file

@ -72,30 +72,38 @@
}, },
completion = { completion = {
accept = { accept = {
auto_brackets = { auto_brackets = { enabled = true, },
enabled = true,
},
}, },
documentation = { documentation = {
auto_show = true, auto_show = true,
auto_show_delay_ms = 800, auto_show_delay_ms = 800,
window = { window = { border = 'rounded', },
border = 'rounded',
}, },
ghost_text = {
enabled = true, ghost_text = { enabled = true },
menu = {
auto_show = false,
},
},
fuzzy = {
prebuilt_binaries = {
download = false
}, },
}, },
signature = { signature = {
enabled = true, enabled = true,
window = { window = { border = 'rounded', },
border = 'rounded',
},
}, },
sources = {
default = { 'lsp', 'buffer', 'path', 'snippets' },
cmdline = {},
}, },
}) })
''; '';
} }
@ -106,8 +114,8 @@
src = pkgs.fetchFromGitHub { src = pkgs.fetchFromGitHub {
owner = "saghen"; owner = "saghen";
repo = "blink.compat"; repo = "blink.compat";
rev = "78f3f7187ff4a1444e952548c556d936da8f72fc"; # v2.1.2 rev = "5ca8848c8cc32abdc980e5db4f0eb7bb8fbf84dc"; # Dec 25, 2024
hash = "sha256-aqHDwrzPOyOw9UbJlQX10/cVQwNHg4v6i9jSm+pNKZc="; hash = "sha256-tFQeKyqdo3mvptYnWxKhTpI4ROFNQ6u3P8cLqtlsozw=";
}; };
}; };
type = "lua"; type = "lua";
@ -143,25 +151,25 @@
''; '';
} }
{ # {
plugin = pkgs.vimUtils.buildVimPlugin { # plugin = pkgs.vimUtils.buildVimPlugin {
name = "neocodeium"; # name = "neocodeium";
src = pkgs.fetchFromGitHub { # src = pkgs.fetchFromGitHub {
owner = "monkoose"; # owner = "monkoose";
repo = "neocodeium"; # repo = "neocodeium";
rev = "4da81528468b33585c411f31eb390dce573ccb14"; # v1.8.0 # rev = "4da81528468b33585c411f31eb390dce573ccb14"; # v1.8.0
hash = "sha256-1n9nNqBNwNDSzbAkm8eB4HZLNy5HmMg25jPwQAnW5OU="; # hash = "sha256-1n9nNqBNwNDSzbAkm8eB4HZLNy5HmMg25jPwQAnW5OU=";
}; # };
}; # };
type = "lua"; # type = "lua";
config = '' # config = ''
local neocodeium =require('neocodeium') # local neocodeium =require('neocodeium')
neocodeium.setup() # neocodeium.setup()
vim.keymap.set("i", "<C-j>", neocodeium.accept, { remap = true }) # vim.keymap.set("i", "<C-j>", neocodeium.accept, { remap = true })
vim.keymap.set("i", "<A-f>", neocodeium.accept, { remap = true }) # vim.keymap.set("i", "<A-f>", neocodeium.accept, { remap = true })
vim.keymap.set("i", "<C-h>", neocodeium.cycle_or_complete, { remap = true }) # vim.keymap.set("i", "<C-h>", neocodeium.cycle_or_complete, { remap = true })
''; # '';
} # }
{ {
plugin = pkgs.vimUtils.buildVimPlugin { plugin = pkgs.vimUtils.buildVimPlugin {