dotfiles/symlinks/config/nvim/lua/lsp/completion.lua

14 lines
669 B
Lua
Raw Normal View History

2021-02-23 11:27:32 +00:00
-------------------------------------------------------------------------------
-- - LSP completion config -
-------------------------------------------------------------------------------
-- Use <Tab> and <S-Tab> to navigate through popup menu
-- Set completeopt to have a better completion experience
vim.o.completeopt = "menuone,noinsert,noselect"
-- Avoid showing message extra message when using completion
vim.cmd('set shortmess+=c')
vim.cmd("autocmd BufEnter * lua require'completion'.on_attach()")
2021-02-24 14:13:56 +00:00
vim.g.completion_matching_strategy_list = {'exact', 'substring', 'fuzzy'}
vim.g.completion_confirm_key = '<C-y>'
vim.g.completion_enable_snippet = 'UltiSnips'