Fork me on GitHub
#lsp
<
2022-04-06
>
andrewzhurov13:04:55

what's an example config for Emacs without use-package?

ericdallo13:04:27

use-package is pretty smart, that way ☝️ it doesn't cache anything and try to install the package/check melpa everytime emacs reads that code

andrewzhurov13:04:41

Atm I'm trying with https://gist.github.com/andrewzhurov/ef28c143ef94e977537f2a50fc7cce33 (it's based on Emacs config from the doc above)

ericdallo13:04:49

not sure if it's use-package or straight.el that does the awesome caching, but it's what doom-emacs uses under the hood

andrewzhurov13:04:22

I'm using guix to manage my emacs setup, so I'm out of luck of having use-package

andrewzhurov13:04:07

should be possible to setup clojure-lsp using vanilla commands, I bet, but I can't figure out what it should be..

andrewzhurov13:04:07

What behaviour I observe: 1. Navigate to https://github.com/clojure-lsp/clojure-lsp/blob/master/cli/src/clojure_lsp/main.clj 2. M-x lsp 3. Minibuffer message "main.clj is not part of any project. Select action:" What is expected: 3. Minibuffer message ala "Server is started"

ericdallo13:04:48

> "main.clj is not part of any project. Select action:" This is expected, you need to select the project root

ericdallo13:04:39

> should be possible to setup clojure-lsp using vanilla commands What you mean with vanilla commands?

andrewzhurov07:04:19

> This is expected, you need to select the project root Huh, how to do so? Is it one of the proposed actions to select? (In my minibuffer that message gets cut only to the first line, so I'm unaware what actions are available)

andrewzhurov07:04:54

> What you mean with vanilla commands? I mean without use-package

ericdallo12:04:23

it's weird that is getting cut, but it's a message like this:

❤️ 1
ericdallo12:04:01

Usually typing i is what you want, just be careful to not chose your home or something wrong like that

andrewzhurov13:04:01

Hmm, tried i

Server clojure-lsp:12624/starting exited with status exit(check corresponding stderr buffer for details). Do you want to restart it? (y or n)

ericdallo13:04:49

That means server crashed, not common, but it may be a result of something misconfigured. Check the server logs:https://clojure-lsp.io/troubleshooting/#server-log