You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 13, 2021. It is now read-only.
lua << EOF
local nvim_lsp =require('lspconfig')
local on_attach =function(_, bufnr)
require'completion'.on_attach()
end
local servers = {'pyright', 'clangd'}
for _, server inipairs(servers) do
nvim_lsp[server].setup {
on_attach = on_attach,
}
end
EOF
" Use completion-nvim in every bufferautocmdBufEnter*lua require'completion'.on_attach()
" Use <Tab> and <S-Tab> to navigate through popup menuinoremap<expr><Tab>pumvisible() ? "\<C-n>" : "\<Tab>"inoremap<expr><S-Tab>pumvisible() ? "\<C-p>" : "\<S-Tab>"" Set completeopt to have a better completion experiencesetcompleteopt=menuone,noinsert,noselect
" Avoid showing message extra message when using completionsetshortmess+=cimap<tab><Plug>(completion_smart_tab)imap<s-tab><Plug>(completion_smart_s_tab)
How to reproduce
On pressing tab, don't get autocomplete.