1
0
Fork 0

nvim: cmp: fix warning and comment, remove orgmode

This commit is contained in:
tastytea 2022-11-05 17:24:21 +01:00
parent 73fb0c5089
commit ab50e92c91
Signed by: tastytea
SSH Key Fingerprint: SHA256:FBkvrOlhq5use1XEttyUGT4bUTDVA1ar9SgIc9P03cM
1 changed files with 2 additions and 3 deletions

View File

@ -23,7 +23,7 @@ if cmp and luasnip then
if cmp.visible() then if cmp.visible() then
cmp.select_next_item() cmp.select_next_item()
elseif luasnip.expandable() then elseif luasnip.expandable() then
luasnip.expand() luasnip.expand({})
elseif luasnip.expand_or_jumpable() then elseif luasnip.expand_or_jumpable() then
luasnip.expand_or_jump() luasnip.expand_or_jump()
else else
@ -47,14 +47,13 @@ if cmp and luasnip then
{ name = 'dictionary' }, { name = 'dictionary' },
{ name = 'zsh' }, { name = 'zsh' },
{ name = 'doxygen' }, { name = 'doxygen' },
{ name = 'orgmode' },
}, { }, {
{ name = 'buffer' }, { name = 'buffer' },
-- { name = 'spell' }, -- { name = 'spell' },
}) })
}) })
-- Use buffer source for `/` -- Use LSP symbols and buffer source for `/`
cmp.setup.cmdline('/', { cmp.setup.cmdline('/', {
mapping = cmp.mapping.preset.cmdline(), mapping = cmp.mapping.preset.cmdline(),
sources = cmp.config.sources({ sources = cmp.config.sources({