Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change order of vim-plug initialization commands #442

Merged
merged 1 commit into from
Jan 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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