Browse Source

updated emacs lsp config

VHDL Tool 1 month ago
parent
commit
4fff713572
1 changed files with 5 additions and 11 deletions
  1. 5 11
      lsp-init.el

+ 5 - 11
lsp-init.el

@@ -3,16 +3,10 @@
3 3
              '("melpa" . "https://melpa.org/packages/"))
4 4
 (package-initialize) 
5 5
 
6
-(require 'lsp-mode)
7
-(add-hook 'vhdl-mode-hook #'lsp)
6
+(require 'use-package)
7
+(setq lsp-vhdl-server-path "vhdl-tool")
8 8
 
9
-(add-to-list 'lsp-language-id-configuration '(vhdl-mode . "vhdl"))
10
-(lsp-register-client
11
-   (make-lsp-client :new-connection (lsp-stdio-connection '("vhdl-tool" "lsp"))
12
-                    :major-modes '(vhdl-mode)
13
-                    :language-id "VHDL"
14
-                    :server-id 'lsp-vhdl-mode))
9
+(use-package lsp-mode
10
+         :config
11
+         (add-hook 'vhdl-mode-hook 'lsp))
15 12
 
16
-(require 'lsp-ui)
17
-(add-hook 'lsp-mode-hook 'lsp-ui-mode)
18
-(add-hook 'vhdl-mode-hook 'flycheck-mode)