Skip to content

Commit

Permalink
Configure completeopt for nvim 0.10/0.11
Browse files Browse the repository at this point in the history
  • Loading branch information
dietrichm committed Aug 31, 2024
1 parent acd0636 commit ca905fa
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion nvim/.config/nvim/lua/dietrichm/completion.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,13 @@ if not loaded then
end

vim.opt.complete = { '.' }
vim.opt.completeopt = { 'menu', 'menuone', 'popup' }
vim.opt.completeopt = { 'menu', 'menuone', 'popup', 'noinsert' }
vim.opt.pumwidth = 20

if vim.fn.has('nvim-0.11') == 1 then
vim.opt.completeopt:append('fuzzy')
end

cmp.setup {
mapping = cmp.mapping.preset.insert({
['<C-Space>'] = cmp.mapping.complete(),
Expand Down

0 comments on commit ca905fa

Please sign in to comment.