nvim: blink-cmp goodness

This commit is contained in:
Daniel Lundin 2024-12-11 20:15:15 +01:00
parent f26beb87bd
commit b455010624
Signed by: dln
SSH key fingerprint: SHA256:dQy1Xj3UiqJYpKR5ggQ2bxgz4jCH8IF+k3AB8o0kmdI
4 changed files with 151 additions and 92 deletions
home/common/nvim

View file

@ -63,49 +63,7 @@
{
plugin = blink-cmp;
type = "lua";
config = ''
require'blink-cmp'.setup({
keymap = {
preset = 'enter',
["<PageDown>"] = { "scroll_documentation_down" },
["<PageUp>"] = { "scroll_documentation_up" },
},
completion = {
accept = {
auto_brackets = { enabled = true, },
},
documentation = {
auto_show = true,
auto_show_delay_ms = 800,
window = { border = 'rounded', },
},
ghost_text = { enabled = true },
menu = {
auto_show = false,
},
},
fuzzy = {
prebuilt_binaries = {
download = false
},
},
signature = {
enabled = true,
window = { border = 'rounded', },
},
sources = {
default = { 'lsp', 'buffer', 'path', 'snippets' },
cmdline = {},
},
})
'';
config = lib.fileContents ./blink-cmp.lua;
}
{