emacs

Consider also joining #cider, #lsp and #inf-clojure, where most of the tool-specific discussions are happening.
Cameron 2020-05-08T13:18:31.195400Z

this isn't directly related to emacs but I figured anyone who'd know would more likely be here; is the LSP protocol 'extendible'? Or is it a very specific set of features its meant to answer to / wrap

Cameron 2020-05-08T13:20:19.197700Z

there's no XY problem here, btw, I'm not fully sure why I'm curious myself

pesterhazy 2020-05-08T14:39:11.198900Z

Is it just me or is MELPA very slow today?

pesterhazy 2020-05-08T14:42:55.199700Z

I'm trying to get started with clojure-lsp for the nth time, and I think I may be failing once more

pesterhazy 2020-05-08T14:43:06.200Z

I always run into the weirdest issues

Snaffu 2020-05-08T14:56:38.202300Z

@pesterhazy I did a sync with MELPA an hour ago and it was fine. I pretty much just followed the docs for clojure-lsp and it works pretty well in Linux. I'm running it alongside python-lsp and that works fine also. You can check /tmp/lsp.out once it tries to start for debugging.

pesterhazy 2020-05-08T14:57:18.202700Z

@snaffu that log file is a useful hint

pesterhazy 2020-05-08T14:58:37.203100Z

ok so I deleted my elpa directory to get a new version of lsp-mode

pesterhazy 2020-05-08T14:58:53.203300Z

I also had to trash ~/.emacs.d/.lsp-session-v1

pesterhazy 2020-05-08T15:01:32.204300Z

seems to be working a bit better now

Snaffu 2020-05-08T15:03:19.205200Z

@pesterhazy Cool.. glad to hear its working for you now

pesterhazy 2020-05-08T15:03:55.205700Z

The documentation is impossible to understand for me though

pesterhazy 2020-05-08T15:04:01.205900Z

> It is possible to pass some options to clojure-lsp through clients' InitializationOptions. Options are a map with keys

pesterhazy 2020-05-08T15:04:20.206100Z

Where does the configuration go?

Snaffu 2020-05-08T15:09:57.207500Z

The only config I have is within my .emacs and pretty much what is mentioned on the clojure-lsp binary page here. https://github.com/snoe/clojure-lsp I just dropped those options in and commented out the ones I did not want to use.

pesterhazy 2020-05-08T15:10:53.207900Z

ah, do you mean .lsp/config.edn?

dpsutton 2020-05-08T15:10:57.208Z

those were just updated as well i believe

pesterhazy 2020-05-08T15:13:43.208400Z

@dpsutton do you mean the clojure-lsp package has been updated?

dpsutton 2020-05-08T15:14:09.208700Z

no i mean specifically the emacs instructions on the repo changed the other day

dpsutton 2020-05-08T15:14:27.209100Z

it was my config and someone updated them i believe. to be a bit more idiomatic with use-package

dpsutton 2020-05-08T15:14:59.209700Z

it was more for @snaffu to check what the updates were as i'm assuming you are seeing the updates

pesterhazy 2020-05-08T15:15:48.209900Z

right yeah

pesterhazy 2020-05-08T15:16:20.210600Z

so my understanding now is that there's a .lsp/config.edn that can be used to configure source paths etc

pesterhazy 2020-05-08T15:17:09.211Z

I'm trying it on a simple project, and even there it seems I need to do some configuration

pesterhazy 2020-05-08T15:19:17.211200Z

this seems to work for me

cat .lsp/config.edn
{"source-paths" ["src"]
 "ignore-classpath-directories" true}

pesterhazy 2020-05-08T15:23:14.211700Z

do you all use clojure-lsp extensively? What are the features you're using the most?

Snaffu 2020-05-08T15:30:38.212700Z

I like the linting capabilities for clj and python. I prefer emacs over the jetbrains tools personally but the linting was something that I couldn't get easily. This handles that use case really well for me.

pesterhazy 2020-05-08T15:31:35.213100Z

hm yeah. joker already does that in a much simpler way though no?

Snaffu 2020-05-08T15:36:52.216100Z

I haven't tried joker, heard it was very nice but i hit an issue with installing it on BSD. Didn't know at the time LSP-Clojure would have that same issue, so I tried LSP. Plus I work in multiple languages, so having a unified top level methodology is appealing. The lsp-python works fine in BSD, it uses a pip.

pesterhazy 2020-05-08T15:44:22.216600Z

I think I was able to configure lsp for my CLJS work project now

pesterhazy 2020-05-08T15:44:39.217Z

Emacs crashed a few times during the process so that's not too encouraging

pesterhazy 2020-05-08T15:44:46.217200Z

But let's see 🙂

Snaffu 2020-05-08T16:00:19.218100Z

Good luck 🙂 I havent seen any crashes myself so hopefully it stabilizes for you.

pesterhazy 2020-05-08T18:13:03.218800Z

Alright! Seems like it's working pretty nicely!

pesterhazy 2020-05-08T18:13:45.219700Z

Different topic, how do I copy something from a helm window?

pesterhazy 2020-05-08T18:14:33.220500Z

E.g. I want to copy the name of a command. I can find the command using helm-M-x But then how do I copy that symbol?

pesterhazy 2020-05-08T18:18:28.220900Z

Found it: C-c <tab>

pesterhazy 2020-05-08T18:54:33.221300Z

Even better: C-u C-c C-k

pesterhazy 2020-05-08T18:56:41.221700Z

Or rather C-c C-k

Eric Ihli 2020-05-08T19:55:09.223700Z

Anyone know how I can view a list of keyboard shortcuts while in a minibuffer? I'm using Doom and SPC s p runs projectile-ripgrep and I want to know how I can, for example, visit a result without losing the minibuffer, or persist the minibuffer in a new buffer, etc...

pesterhazy 2020-05-08T20:09:51.224500Z

In helm C-j usually works for that

Eric Ihli 2020-05-08T20:42:18.227500Z

In Doom, with evil bindings, C-j moves down to the next line. I see describe-buffer takes an optional buffer argument, and C-x o works when in the minibuffer to switch buffers. So I thought I could C-x o to get out of the minibuffer and then (describe-buffer <name-of-minibuffer>) to get the description, but when I do a list-buffers while the minibuffer is open, I don't see the name of the minibuffer in the list.

Eric Ihli 2020-05-08T20:53:54.227900Z

Ah. C-h m. Of course.