fix(nvim/cmp): reorganize and comment

This commit is contained in:
Michael Thomas 2024-06-14 17:13:46 -04:00
parent 629b5ce741
commit b8efbc8f7d

View File

@ -1,11 +1,5 @@
{ {
plugins = { 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 = { cmp = {
enable = true; enable = true;
autoEnableSources = false; 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 = '' extraConfigLua = ''
luasnip = require("luasnip") luasnip = require("luasnip")