-
-
Notifications
You must be signed in to change notification settings - Fork 49
Expand file tree
/
Copy path.dir-locals.el
More file actions
19 lines (19 loc) · 1.26 KB
/
.dir-locals.el
File metadata and controls
19 lines (19 loc) · 1.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
((nil . ((eglot-server-programs . (((html-mode
css-mode css-ts-mode
(js-mode :language-id "javascript")
(js-ts-mode :language-id "javascript")
(typescript-mode :language-id "typescript")
(typescript-ts-mode :language-id "typescript")
(tsx-ts-mode :language-id "typescriptreact")
js-json-mode json-mode json-ts-mode jsonc-mode)
"biome" "lsp-proxy")))
(eval . (add-hook 'before-save-hook
(lambda ()
(eglot-format-buffer)
(when (member major-mode '(js-mode
js-ts-mode
typescript-mode
typescript-ts-mode
tsx-ts-mode))
(eglot-code-actions (point-min) (point-max)
"source.organizeImports.biome" t))))))))