reddit / emacs

Svelte config to share?

jungleb77 · 2022-02-22 15:57
Anyone have a working emacs config for Svelte that they can share? I’ve enabled svelte-mode and installed the svelte-ls lsp server, but things like lsp-find-definition just error out and ask me to check lsp-describe-server, which shows that the server is alive, but not much else. Any tips? I have to explore a codebase, and being able to quickly follow definitions is key.
genehack · 2022-03-01 02:19
My config is pretty minimal: https://git.genehack.net/genehack/emacs/src/branch/main/etc/misc.el#L992 (install and configure `svelte-mode`) and https://git.genehack.net/genehack/emacs/src/branch/main/etc/completion.el#L67 (to hook up `lsp-mode` and `svelte-mode`) but `lsp-find-definition` works fine.