Fork me on GitHub
#vim
<
2021-11-23
>
zendevil.eth09:11:27

Hi I’m trying to :Eval in vim fireplace, but instead of getting eval’d I’m getting this error in the minibuffer at the bottom:

zendevil.eth09:11:37

Vim(return):E716: Key not present in Dictionary: "response, 'value', [])"

zendevil.eth09:11:43

Any ideas what might be causing this?

zendevil.eth09:11:19

nevermind had a syntax error in the file

timo09:11:12

I changed my config to use Neovim's lua and now Neovim opens an empty file when I gd to show the definition of a fn in a dependency that is on the classpath. Using nvim-lsp-config and clojure-lsp with Conjure. Anyone has an idea? basic reproduction:

(ns foobar)
(println "foobar")
start a repl and place cursor onto println and use lsp to show definition. Then it shows an empty buffer and "zipfile:/home/timo/.m2/repository/org/clojure/clojure/1.10.3/clojure-1.10.3.jar::clojure/core.clj" [New] --No lines in buffer-- I don't understand where this problem is coming from...with my old config it works and shows the source of definition. Anyone can point me to where the problem is?

Olical16:11:20

So Conjure shouldn't be involved in that, it's <localleader>gd for Conjure by default now so you can rely on other systems with the unprefixed gd mapping. Just for clarity 🙂

Olical16:11:41

If you're relying on LSP you shouldn't even need a REPL connected to go to the definition.

Olical16:11:31

To me it looks like whatever LSP client / server combo you have isn't opening the zipfile path correctly so nvim doesn't know that it's a zip and should be explored that way?

timo17:11:38

hey thanks, already resolved, it was actually copypasted code that disabled the zip-plugin in nvim

Olical17:11:12

Ohhhh! Congrats 😄