From: Enno Date: Tue, 16 Jan 2024 13:00:35 +0000 (+0100) Subject: change order of vim-plug initialization commands X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=52baacb9c0b845a7964ac6682cf336722a2b0c3f;p=vim-lsp.git change order of vim-plug initialization commands I could not get omnicomplete to work when setting the options after adding the servers --- diff --git a/doc/lsp.txt b/doc/lsp.txt index d7c4bbd..3c65c2b 100644 --- a/doc/lsp.txt +++ b/doc/lsp.txt @@ -416,6 +416,10 @@ LSP plugin, then you need to use the VimEnter autocmd to initialize the language server and to set the language server options. For example: > vim9script + + var lspOpts = {autoHighlightDiags: true} + autocmd VimEnter * LspOptionsSet(lspOpts) + var lspServers = [ { name: 'clangd', @@ -425,9 +429,6 @@ language server and to set the language server options. For example: > } ] autocmd VimEnter * LspAddServer(lspServers) - - var lspOpts = {autoHighlightDiags: true} - autocmd VimEnter * LspOptionsSet(lspOpts) < *lsp-options* *LspOptionsSet()* *g:LspOptionsSet()*