Fork me on GitHub
#lsp
<
2023-09-11
>
rs06:09:42

In Neovim, seems like lsp's funcitonality stops working whenever I navigate to a jar/zipfile e.g If I'm on a buffer which has a method 'x' defined in a clj file inside a jar.. Lsp goto definition takes me to the method 'x' in the jar file but after that it stops recognizing the jar file and lsp seems disabled. :LspInfo says 0 client(s) attached to this buffer: Is there a way to let Lsp in neovim know that it should treat a clj file inside a jar/zip as a clojure file and enable lsp on it?

yes 1
fuad12:09:32

@UKFSJSM38 what do you mean with "library file"? is that something the lsp client would do (as in it's part if the lsp specification)?

ericdallo14:09:44

Yes, let me explain how that works: On the client, it's configured that any file inside ~/.m2 or ~/.gitlibs/libs is a library-folder, so when opening a file there, the lsp client consider those files as part of the existing running LSP workspace, so it won't spawn a new server process or anything.

💡 1
🙌 1