nvim: blink-cmp goodness
This commit is contained in:
parent
f26beb87bd
commit
b455010624
4 changed files with 151 additions and 92 deletions
home/common/nvim
56
home/common/nvim/blink-cmp.lua
Normal file
56
home/common/nvim/blink-cmp.lua
Normal file
|
@ -0,0 +1,56 @@
|
|||
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 },
|
||||
|
||||
list = {
|
||||
selection = "manual",
|
||||
},
|
||||
|
||||
menu = {
|
||||
auto_show = true,
|
||||
},
|
||||
},
|
||||
|
||||
fuzzy = {
|
||||
prebuilt_binaries = {
|
||||
download = false
|
||||
},
|
||||
},
|
||||
|
||||
keymap = {
|
||||
preset = 'super-tab',
|
||||
},
|
||||
|
||||
signature = {
|
||||
enabled = true,
|
||||
window = { border = 'rounded', },
|
||||
},
|
||||
|
||||
sources = {
|
||||
default = { 'lsp', 'codeium', 'buffer' },
|
||||
cmdline = {},
|
||||
providers = {
|
||||
codeium = {
|
||||
name = "codeium",
|
||||
module = 'blink.compat.source',
|
||||
score_offset = -100,
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
})
|
|
@ -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;
|
||||
}
|
||||
|
||||
{
|
||||
|
|
|
@ -11,9 +11,9 @@
|
|||
];
|
||||
|
||||
plugins = with pkgs.vimPlugins; [
|
||||
ts-comments-nvim
|
||||
nvim-ts-context-commentstring
|
||||
playground
|
||||
ts-comments-nvim
|
||||
|
||||
{
|
||||
plugin = nvim-treesitter-context;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue