nvim completion
This commit is contained in:
parent
b3d83a2d78
commit
09e1fe8b0a
@ -12,9 +12,6 @@ local function setup_cmp()
|
||||
local cmp = require("cmp")
|
||||
|
||||
cmp.setup({
|
||||
completion = {
|
||||
autocomplete = false,
|
||||
},
|
||||
snippet = {
|
||||
expand = function(args)
|
||||
require('luasnip').lsp_expand(args.body)
|
||||
@ -31,9 +28,6 @@ local function setup_cmp()
|
||||
})
|
||||
elseif has_words_before() then
|
||||
cmp.complete()
|
||||
if cmp.visible() then
|
||||
cmp.select_next_item()
|
||||
end
|
||||
else
|
||||
fallback()
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user