getting svelte lsp working
This commit is contained in:
parent
608cdf5920
commit
d6393c4c49
2 changed files with 7 additions and 8 deletions
14
config.el
14
config.el
|
@ -128,12 +128,7 @@
|
|||
(setq! citar-notes-paths '("~/Documents/Obsidian/Primary/Sources"))
|
||||
(setq! citar-file-note-extensions '("md")))
|
||||
|
||||
;; svelte support
|
||||
(add-to-list 'auto-mode-alist '("\\.svelte\\'" . web-mode))
|
||||
(add-to-list 'auto-mode-alist '("\\.css\\'" . web-mode))
|
||||
(setq web-mode-engines-alist
|
||||
'(("svelte" . "\\.svelte\\'")))
|
||||
|
||||
(add-to-list 'auto-mode-alist '("\\.svelte\\'" . svelte-mode))
|
||||
(add-to-list 'auto-mode-alist '("\\.vs\\'" . glsl-mode))
|
||||
(add-to-list 'auto-mode-alist '("\\.fs\\'" . glsl-mode))
|
||||
|
||||
|
@ -275,9 +270,12 @@
|
|||
:after eglot
|
||||
:config (eglot-booster-mode))
|
||||
|
||||
(after! eglot
|
||||
(add-to-list 'eglot-server-programs '(svelte-mode . ("svelteserver" "--stdio"))))
|
||||
|
||||
(setq-default eglot-workspace-configuration
|
||||
'(:nixd
|
||||
(:formatting (:command ["alejandra"]))))
|
||||
'(:nixd (:formatting (:command ["alejandra"]))))
|
||||
|
||||
|
||||
;; load additional config files
|
||||
(load! "obsidian-config.el")
|
||||
|
|
|
@ -74,6 +74,7 @@
|
|||
;; (package! tidal)
|
||||
(package! fish-mode)
|
||||
(package! smart-tabs-mode)
|
||||
(package! svelte-mode)
|
||||
|
||||
(package! sclang
|
||||
:recipe (:local-repo "/home/emenel/.local/share/SuperCollider/downloaded-quarks/scel/el"))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue