Skip to content

Commit

Permalink
Merge pull request #442 from Konfekt/patch-2
Browse files Browse the repository at this point in the history
change order of vim-plug initialization commands
  • Loading branch information
yegappan authored Jan 16, 2024
2 parents 7103956 + 52baacb commit 5ebc9dd
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions doc/lsp.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -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()*
Expand Down

0 comments on commit 5ebc9dd

Please sign in to comment.