Browse Source

update lsp nvim config

VHDL Tool 1 year ago
parent
commit
535eabbfc1
1 changed files with 2 additions and 3 deletions
  1. 2 3
      lsp-init.vim

+ 2 - 3
lsp-init.vim

@@ -27,12 +27,11 @@ let g:LanguageClient_serverCommands = {
27 27
 	\ 'vhdl': ['vhdl-tool', 'lsp']
28 28
     \ }
29 29
 
30
+let g:LanguageClient_autoStart = 1
31
+
30 32
 nnoremap <silent> K :call LanguageClient_textDocument_hover()<CR>
31 33
 nnoremap <silent> gd :call LanguageClient_textDocument_definition()<CR>
32 34
 
33
-autocmd BufReadPost *.vhd LanguageClientStart
34
-autocmd BufReadPost *.vhdl LanguageClientStart
35
-
36 35
 au! CursorHold *.vhd  execute ":call LanguageClient_textDocument_hover()"
37 36
 au! CursorHold *.vhdl execute ":call LanguageClient_textDocument_hover()"
38 37
 " End LSP configuration