Fork me on GitHub
#lsp
<
2023-08-22
>
Martynas Maciulevičius09:08:03

Hey. I'd like to know whether it's possible to change how function completions are suggested for clojure.core namespace. When I type constantly then I'm suggested to require [clojure.core :as c] . This is not what I want. I don't want to import it again. Screenshot: Edit: Hm. When I restarted my LSP server then it doesn't appear anymore. I don't understand why it could work like this. But now the formatting is broken. Edit2: Ok. When I restart my editor it appears again. Ok. I don't know what it is. clojure-lsp 2023.08.06-00.28.06 clj-kondo 2023.07.14-SNAPSHOT

ericdallo12:08:00

Are you sure you don't have any requires in the code like clojure.core :as c ? or any other completion backend that may suggest that

Martynas Maciulevičius08:08:12

I don't know. For now I'll not debug this because this is not too big of a deal. Maybe it's only my problem. I think I don't have other syntax suggesters than LSP and if I shut down LSP it doesn't suggest anything at all. Maybe I imported clojure.core :as c at some point to test it several months ago in other project but then is it saved in some kind of cache somewhere?

ericdallo11:08:37

Not really, but you can try to remove the cache if you think could be related .lsp/.cache