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