lsp-init.el 588 B

12345678910111213141516171819
  1. (require 'package)
  2. (add-to-list 'package-archives
  3. '("melpa" . "https://melpa.org/packages/"))
  4. (package-initialize)
  5. (require 'lsp-mode)
  6. (add-hook 'vhdl-mode-hook #'lsp)
  7. (add-to-list 'lsp-language-id-configuration '(vhdl-mode . "vhdl"))
  8. (lsp-register-client
  9. (make-lsp-client :new-connection (lsp-stdio-connection '("vhdl-tool" "lsp"))
  10. :major-modes '(vhdl-mode)
  11. :language-id "VHDL"
  12. :server-id 'lsp-vhdl-mode))
  13. (require 'lsp-ui)
  14. (add-hook 'lsp-mode-hook 'lsp-ui-mode)
  15. (add-hook 'vhdl-mode-hook 'flycheck-mode)