M modules/init-linter.el => modules/init-linter.el +18 -6
@@ 6,16 6,28 @@
;;---------------------------
;; Lsp Mode
;;---------------------------
-(use-package lsp-mode
- :config
- (add-hook 'lsp-mode-hook #'lsp-enable-which-key-integration)
- (add-hook 'prog-mode-hook #'lsp))
-
(use-package lsp-treemacs
:config
(lsp-treemacs-sync-mode 1))
-
(use-package lsp-ui)
+(use-package lsp-mode
+ :pin "MELPA"
+ :hook ((js2-mode . lsp)
+ (typescript-mode . lsp)
+ (lsp-mode . lsp-enable-which-key-integration))
+ :custom
+ (lsp-clients-angular-language-server-command
+ '("node"
+ (concat "~" "/virtualenvs/ndjs/lib/node_modules/@angular/language-server")
+ "--ngProbeLocations"
+ (concat "~" "virtualenvs/ndjs/lib/node_modules")
+ "--tsProbeLocations"
+ (concat "~" "virtualenvs/ndjs/lib/node_modules")
+ "--stdio"))
+ )
+
+;; require install
+;; npm install -g @angular/language-service@next typescript @angular/language-server
(use-package dap-mode)