lsp

:clojure-lsp: Clojure implementation of the Language Server Protocol: https://clojure-lsp.io/
Alex 2021-02-10T05:55:23.423400Z

Any tips for turning off cljfmt auto-formatting on Emacs LSP? I love the auto-formatting but want to get team buy-in + adoption before introducing a bunch of commits that change indentation 🙂

slipset 2021-02-10T08:53:16.424400Z

Dear lazy-web, how do I upgrade the lsp-server? I installed it through M-x lsp-install-server RET clojure-lsp ?

borkdude 2021-02-10T09:22:09.424900Z

@slipset I download it manually. If you put it on the path it should probably just work

borkdude 2021-02-10T09:22:55.425700Z

But you can also set the path explicitly:

lsp-clojure-custom-server-command '("bash" "-c" "/Users/borkdude/Dropbox/bin/clojure-lsp")
(I don't think the bash thing in between is needed, but I copied this from the example config)

ericdallo 2021-02-10T12:10:00.428400Z

@rahx1t are you using lsp-mode? If so you can disable it with lsp-enable-identation nil

ericdallo 2021-02-10T12:11:04.430200Z

@slipset C-u lsp-install-server will force download the latest server even if already installed, I have plans to improve lsp-mode to auto update

ericdallo 2021-02-10T12:11:32.430700Z

Otherwise, do that @borkdude suggested :)

slipset 2021-02-10T12:11:41.431Z

Thanks!

ericdallo 2021-02-10T12:12:03.431100Z

You can also pass flags to clijure-lsp server to disable formatting if using a client that does not support disable it via client config