Enable manual tab completion through LSPs
This commit is contained in:
parent
7e61bb2307
commit
a48b40d673
3 changed files with 8 additions and 1 deletions
|
@ -149,6 +149,12 @@ augroup lexical
|
||||||
autocmd FileType tex lexical#init()
|
autocmd FileType tex lexical#init()
|
||||||
augroup END
|
augroup END
|
||||||
|
|
||||||
|
g:mucomplete#can_complete = {
|
||||||
|
default: {
|
||||||
|
omni: (t) => strlen(&l:omnifunc) > 0 && (t =~# '\m\k\k$' || (g:mucomplete_with_key && t =~# '\m\S$'))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
# Configure a statusline and tabline using vim-crystalline. I tried a bunch of
|
# Configure a statusline and tabline using vim-crystalline. I tried a bunch of
|
||||||
# different statusline plugins and this one, which is basically just a utility
|
# different statusline plugins and this one, which is basically just a utility
|
||||||
# library for writing your *own* statusline functions, worked the best for my
|
# library for writing your *own* statusline functions, worked the best for my
|
||||||
|
|
|
@ -35,6 +35,6 @@ export def Configure(): void
|
||||||
augroup END
|
augroup END
|
||||||
endif
|
endif
|
||||||
|
|
||||||
g:lsp#lsp#AddServer(installedServers)
|
|
||||||
g:lsp#options#OptionsSet(options.lspOptions)
|
g:lsp#options#OptionsSet(options.lspOptions)
|
||||||
|
g:lsp#lsp#AddServer(installedServers)
|
||||||
enddef
|
enddef
|
||||||
|
|
|
@ -2,6 +2,7 @@ vim9script
|
||||||
|
|
||||||
export const lspOptions = {
|
export const lspOptions = {
|
||||||
aleSupport: true,
|
aleSupport: true,
|
||||||
|
autoComplete: false, # I prefer manual tab completion using MUcomplete
|
||||||
ignoreMissingServer: true,
|
ignoreMissingServer: true,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue