nvim: cmp: fix warning and comment, remove orgmode
This commit is contained in:
parent
73fb0c5089
commit
ab50e92c91
|
@ -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({
|
||||||
|
|
Loading…
Reference in New Issue