Fork me on GitHub
#lsp
<
2021-08-31
>
papachan00:08:56

why i have always

LSP :: core.clj not in project or it is blacklisted.

papachan00:08:36

(in emacs) look like the project directory is not recognized by clojure-lsp

ericdallo00:08:11

most likely you have core.clj blacklisted

ericdallo00:08:35

you can confirm that with lsp-workspace-folders-remove and remove the folder where core.clj is

👍 1
ericdallo00:08:03

then lsp again, then lsp-mode will ask where is the project root, for core.clj as we open it as lib, you can just ignore, but no blacklist

papachan00:08:46

Thanks eric. I just cleanup the dirs from lsp-mode

papachan00:08:57

will see if it ask me for some project dir

solf14:08:35

Hey guys, quick newbie-to-lsp question: is (emacs) clojure-lsp supposed to run alongside CIDER, replace it, or any of those two?

ericdallo14:08:59

it can perfectly run alongside CIDER

solf14:08:48

Ah thanks, missed that

practicalli-johnny15:08:35

@U7S5E44DB In simple terms: LSP helps you write syntactically correct code, CIDER (or any REPL) helps you write code that does what you think its supposed to do. The REPL where your Clojure code runs. If you are used to using IDE's, then there are lots of features already enabled. If you want a simpler experience, the features can be hidden or turned off very easily. This page gives a good overview of the UI features https://emacs-lsp.github.io/lsp-ui/

👍 1
ericdallo15:08:14

This one gives more details on each lsp-mode feature and how to disable/enable: https://emacs-lsp.github.io/lsp-mode/tutorials/how-to-turn-off/

👍 1
Célio17:08:03

Hey folks, I’m looking for a way to jump to a symbol in the current namespace in Emacs. Similar to how consult-lsp-symbols does it, but locally in the namespace instead of globally. Any tips?

ericdallo17:08:36

there is lsp-treemacs-symbols

ericdallo17:08:24

but there is no easy filter for that one

ericdallo17:08:08

I think a lsp-ivy-document-symbol would make sense for that case, feel free to open an issue here: https://github.com/emacs-lsp/lsp-ivy

👍 1
Célio17:08:33

I’ve been using lsp-treemacs-symbols for a while, it’s pretty good for visualizing the symbols, but it forces me to use the mouse. I like to type the symbol name like consult-lsp-symbols does.

ericdallo17:08:24

yeah, I can see how that is convenient

Célio17:08:03

Thanks I’ll open an issue there.

borkdude22:08:36

I just saw that clojure-lsp also shows the amount of tests a var occurs in. Nice twist! https://twitter.com/borkdude/status/1432826803161378820

clojure-lsp 8
metal 7
catjam 9