You are not logged in.

#1 2022-06-23 16:17:45

Registered: 2009-06-10
Posts: 106

emacs and lsp (language server protocol)

managed to figure out how to use lsp for openscad on emacs:

- install openscad-language-server
- % rustup toolchain install stable (starts the rust toolchain)
- % cargo install openscad-language-server (in .cargo/bin/ should put on PATH)
  either via customize
  or by matching $PATH: (setenv "PATH" (shell-command-to-string "echo -n $PATH"))
- emacs:
  package-install yas-snippets scad-mode
- init-modes.el:
  (add-hook 'scad-mode-hook #'yas-minor-mode)
  (add-hook 'scad-mode-hook #'lsp)

at some point during the above (can't remember when), lsp-openscad appeared as an option to choose when
M-x lsp

however, to get lsp for clojure, i didn't have to do anything other than pick it because lsp-clojure was already there (as with several other items).

1. why is it necessary to get lsp via openscad-language-server, but not run such a thing with clojure or any of the others?

2. how is lsp getting it's syntax and alternatives for lsp-clojure or bash-ls (i imagine it does this for openscad via the server)?

3. what is lsp actually doing other than bundling several modes (eg company, flycheck ...) that i could have done manually?

(btw, it works really well!)

in friendship,


Board footer

Powered by FluxBB