Enable manual tab completion through LSPs

This commit is contained in:
Danielle McLean 2024-05-31 12:42:31 +10:00
parent 7e61bb2307
commit a48b40d673
Signed by: 00dani
GPG key ID: 6854781A0488421C
3 changed files with 8 additions and 1 deletions

View file

@ -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

View file

@ -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

View file

@ -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,
} }