pkg(nixvim): Add blink-cmp, lazydev, mini-ai, mini-pairs and ts-comments plugins to improve coding UX
This commit is contained in:
parent
7477166d9e
commit
cfdd89c080
6 changed files with 265 additions and 16 deletions
55
pkgs/nixvim/coding/blink-cmp.nix
Normal file
55
pkgs/nixvim/coding/blink-cmp.nix
Normal file
|
|
@ -0,0 +1,55 @@
|
|||
{...}: {
|
||||
youthlic.plugins.blink-cmp = {
|
||||
enable = true;
|
||||
setupLspCapabilities = true;
|
||||
settings = {
|
||||
snippets = {
|
||||
expand = {
|
||||
__raw =
|
||||
#lua
|
||||
''
|
||||
function(snippet, _)
|
||||
return {}
|
||||
end
|
||||
'';
|
||||
};
|
||||
};
|
||||
appearance = {
|
||||
# use_nvim_cmp_as_default = false;
|
||||
};
|
||||
completion = {
|
||||
accept = {
|
||||
auto_brackets = {
|
||||
enabled = true;
|
||||
};
|
||||
};
|
||||
menu = {
|
||||
draw = {
|
||||
treesitter = ["lsp"];
|
||||
};
|
||||
};
|
||||
documentation = {
|
||||
auto_show = true;
|
||||
auto_show_delay_ms = 200;
|
||||
};
|
||||
ghost_text = {
|
||||
enabled = {
|
||||
__raw =
|
||||
#lua
|
||||
''vim.g.ai_cmp'';
|
||||
};
|
||||
};
|
||||
};
|
||||
sources = {
|
||||
compat = [];
|
||||
default = ["lsp" "path" "snippets" "buffer"];
|
||||
};
|
||||
cmdline = {
|
||||
enabled = false;
|
||||
};
|
||||
keymap = {
|
||||
preset = "enter";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue