init-linter.el 941 B

12345678910111213141516171819202122232425262728293031323334353637
  1. ;;; init-linter.el --- .Emacs Configuration -*- lexical-binding: t -*-
  2. ;;; Commentary:
  3. ;;
  4. ;;; Code:
  5. ;;---------------------------
  6. ;; Lsp Mode
  7. ;;---------------------------
  8. (use-package lsp-treemacs
  9. :config
  10. (lsp-treemacs-sync-mode 1))
  11. (use-package lsp-ui)
  12. (use-package lsp-mode
  13. :pin "MELPA"
  14. :hook ((lsp-mode . lsp-enable-which-key-integration))
  15. :custom
  16. (lsp-clients-angular-language-server-command
  17. '("node"
  18. (getenv "ANGULAR_SERVER_DIR")
  19. "--ngProbeLocations"
  20. (getenv "NODEJS_MODULE_DIR")
  21. "--tsProbeLocations"
  22. (getenv "NODEJS_MODULE_DIR")
  23. "--stdio"))
  24. (lsp-diagnostics-provider :none)
  25. :commands (lsp lsp-deferred))
  26. ;; require install language server for Angular
  27. ;; npm install -g @angular/language-service@next typescript @angular/language-server
  28. ;; require install eslint for ReactJS
  29. ;; npm install -g eslint
  30. (use-package dap-mode)
  31. (provide 'init-linter)
  32. ;; End:
  33. ;;; init-linter.el ends here