From 52baacb9c0b845a7964ac6682cf336722a2b0c3f Mon Sep 17 00:00:00 2001 From: Enno Date: Tue, 16 Jan 2024 14:00:35 +0100 Subject: [PATCH] change order of vim-plug initialization commands I could not get omnicomplete to work when setting the options after adding the servers --- doc/lsp.txt | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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()* -- 2.48.1