nvim completion

This commit is contained in:
thek4n 2024-12-12 15:37:27 +03:00
parent b3d83a2d78
commit 09e1fe8b0a

View File

@ -12,9 +12,6 @@ local function setup_cmp()
local cmp = require("cmp") local cmp = require("cmp")
cmp.setup({ cmp.setup({
completion = {
autocomplete = false,
},
snippet = { snippet = {
expand = function(args) expand = function(args)
require('luasnip').lsp_expand(args.body) require('luasnip').lsp_expand(args.body)
@ -31,9 +28,6 @@ local function setup_cmp()
}) })
elseif has_words_before() then elseif has_words_before() then
cmp.complete() cmp.complete()
if cmp.visible() then
cmp.select_next_item()
end
else else
fallback() fallback()
end end