nvim: require ctrl+space

This commit is contained in:
Artemis Tosini 2024-12-09 23:24:20 +00:00
parent 1a2e06e96a
commit 1b17f8f326
Signed by: artemist
GPG key ID: ADFFE553DCBB831E

View file

@ -128,13 +128,12 @@ lib.setAttrByPath setPath (
cmp = { cmp = {
enable = true; enable = true;
settings = { settings = {
completion.autocomplete = false;
snippet.expand = "function(args) require('luasnip').lsp_expand(args.body) end"; snippet.expand = "function(args) require('luasnip').lsp_expand(args.body) end";
sources = [ sources = [
{ name = "luasnip"; } { name = "luasnip"; }
{ name = "nvim_lsp"; } { name = "nvim_lsp"; }
{ name = "path"; } { name = "path"; }
{ name = "calc"; }
{ name = "emoji"; }
]; ];
mapping = { mapping = {
"<CR>" = "cmp.mapping.confirm({ select = true })"; "<CR>" = "cmp.mapping.confirm({ select = true })";