fix(nvim/cmp): reorganize and comment
This commit is contained in:
parent
629b5ce741
commit
b8efbc8f7d
@ -1,11 +1,5 @@
|
||||
{
|
||||
plugins = {
|
||||
cmp-nvim-lsp = {enable = true;}; # lsp
|
||||
cmp-buffer = {enable = true;};
|
||||
copilot-cmp = {enable = true;}; # copilot suggestions
|
||||
cmp-path = {enable = true;}; # file system paths
|
||||
cmp_luasnip = {enable = true;}; # snippets
|
||||
cmp-cmdline = {enable = false;}; # autocomplete for cmdline
|
||||
cmp = {
|
||||
enable = true;
|
||||
autoEnableSources = false;
|
||||
@ -70,6 +64,13 @@
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
# Completion from Language Server
|
||||
cmp-nvim-lsp.enable = true; # lsp
|
||||
# Completion for buffer words
|
||||
cmp-buffer.enable = true;
|
||||
# Completion for file system paths
|
||||
cmp-path.enable = true;
|
||||
};
|
||||
extraConfigLua = ''
|
||||
luasnip = require("luasnip")
|
||||
|
Loading…
x
Reference in New Issue
Block a user