lsp

fuad 2025-03-19T10:41:22.553199Z

Came back to a clojure project after a couple of months and noticed my nvim/clojure-lsp setup doesn’t seem to be (fully) working. I’m trying to debug it but I’m not sure exactly how to do it 🧵

fuad 2025-03-19T10:41:59.225149Z

Other lsp servers seem to be working, so the problem seems specific to the clojure-lsp setup.

fuad 2025-03-19T10:42:52.604619Z

I have the latest clojure-lsp installed via Mason: 2025.03.07-17.42.36

fuad 2025-03-19T10:43:17.928809Z

:LspInfo looks ok before opening any files:

==============================================================================
lspconfig: require("lspconfig.health").check()

LSP configs active in this session (globally) ~
- Configured servers: lua_ls, typescript-tools, jsonls, stylelint_lsp, cssmodules_ls, cssls, html, emmet_language_server, yamlls, clojure_lsp, taplo, bashls, fennel_language_server, eslint
- OK Deprecated servers: (none)

LSP configs active in this buffer (bufnr: 1) ~
- Language client log: ~/.local/state/nvim/lsp.log
- Detected filetype: ``
- 0 client(s) attached to this buffer

fuad 2025-03-19T10:44:10.371479Z

after opening a clojure file, :LspInfo opens an empty buffer

fuad 2025-03-19T10:48:24.563249Z

:LspLog contains some stuff from other servers, nothing from clojure lsp

ericdallo 2025-03-19T12:18:47.791299Z

probably nvim is not starting the server, you can confirm that checking if there is a clojure-lsp process

👀 1
eval-on-point 2025-03-19T16:01:35.360109Z

Would it be a good idea for lsp-clojure.el to provide a keymap similar to clj-refactor-map that the user could add to a prefix? Is this already done somewhere else?

👍 1
ericdallo 2025-03-19T16:12:46.205229Z

probably, feel free to send a PR, I can't take a look at it