Remove .dir-locals.el (now that we have lsp-clients-typescript-prefer-use-project-ts-server)
This commit is contained in:
parent
10768bd83e
commit
7e088ef8b3
|
@ -1,22 +0,0 @@
|
||||||
((typescript-mode
|
|
||||||
. ((eval
|
|
||||||
. (progn
|
|
||||||
;; For TIDE:
|
|
||||||
(setq tide-tsserver-executable
|
|
||||||
(concat
|
|
||||||
(let ((d (dir-locals-find-file ".")))
|
|
||||||
(if (stringp d) d (car d)))
|
|
||||||
"node_modules/typescript/lib/tsserver.js"))
|
|
||||||
;; For LSP:
|
|
||||||
(require 'lsp-javascript)
|
|
||||||
(let ((node-modules (concat
|
|
||||||
(let ((d (dir-locals-find-file ".")))
|
|
||||||
(if (stringp d) d (car d)))
|
|
||||||
"node_modules/")))
|
|
||||||
(lsp-dependency 'typescript-language-server
|
|
||||||
`(:system ,(concat node-modules
|
|
||||||
"typescript-language-server/lib/cli.mjs")))
|
|
||||||
(lsp-dependency 'typescript
|
|
||||||
`(:system ,(concat node-modules
|
|
||||||
"typescript/lib/tsserver.js")))))
|
|
||||||
))))
|
|
Loading…
Reference in New Issue