Skip to content

Commit

Permalink
use ++once to set up LSP only once
Browse files Browse the repository at this point in the history
  • Loading branch information
Konfekt authored Nov 15, 2024
1 parent 7dd6de8 commit f88c4d8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion doc/lsp.txt
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,8 @@ Shell script, Vim script and PHP file types: >
augroup END
for i in range(len(g:lspServers))
for ft in g:lspServers[i].filetype
exe 'autocmd LspSetup FileType' ft 'autocmd BufWinEnter <buffer> call LspAddServer([g:lspServers[' .. i .. ']]) | autocmd! LspSetup FileType' ft
exe 'autocmd LspSetup FileType' ft '++once'
\ 'autocmd LspSetup BufWinEnter <buffer> ++once call LspAddServer([g:lspServers[' .. i .. ']])'
endfor
endfor
<
Expand Down

0 comments on commit f88c4d8

Please sign in to comment.