Fork me on GitHub
#vim
<
2022-03-09
>
timo08:03:59

anyone has a hint on how to highlight matching brackets? I want it to highlight the one matching bracket of the bracket I have my cursor on, no rainbow, only some kind of highlight like bolden the matching bracket.

Leaf Garland09:03:33

Vim has the matchparen plugin included by default. You should already have matching parentheses highlighted. Maybe your color scheme does not set the MatchParen highlight? See :help matchparen for details.

👍 1
walterl14:03:25

TIL: :help standard-plugin-list

Chase16:03:37

I have a project deployed on Heroku but using deps.edn so it requires an almost empty project.clj file (from lein). I'm now getting this error every time I go into the project:

[coc.nvim] Classpath lookup failed when running `lein with-profile +test,+dev classpath`. Some fe
atures may not work properly. Error:                                                             
(Side note: I don't know how to see that full error message from the statusline. :messages just repeats that truncated error message at the bottom) I'm not sure why coc.nvim is trying to run that lein command or how to fix that.

Chase16:03:32

All that is in that project.clj is :

{:min-lein-version "2.9.8"}

sheluchin16:03:12

Maybe try set verbose=10 (or some lower value) to see more of the message. :CocInfo could be helpful too.

Chase16:03:35

Will do. Of course now it's not doing it anymore even though it did it every time for the last few days. lol story of my debugging life

😄 1
juhoteperi16:03:12

The tools probably presume the file in format: (defproject project-name "version" :min-lein-version "...")

juhoteperi16:03:49

Just bare edn map isn't really a valid project.clj file

Leaf Garland20:03:28

clojure-lsp is making that call to find your classpath. The class path scanning was part of a recent release which is probably why you are seeing it now. It can be disabled https://clojure-lsp.io/settings/#source-paths-discovery

snoe23:03:45

You should be able to override the default project-specs to some command that can return a classpath for the project. https://clojure-lsp.io/settings/#classpath-scan

Chase23:03:38

Ok. How do I change this example code given to look at both deps.edn and shadow-cljs.edn (while ignoring the project.clj)?

{:project-specs [{:project-path "deps.edn"
                  :classpath-cmd ["clojure" "-A:my-custom-alias" "-Spath"]}]}
Do I change the input to project-path to a vector? What alias am I using?

Chase23:03:06

or use a whole new map in that :project-specs vector with the shadow-cljs.edn info?

Chase00:03:27

Actually I just fleshed out the project.clj as suggested above and since the docs say it just uses the classpaths it finds from all sources I think that should solve it, right?

practicalli-johnny11:03:12

I've used an empty project.clj file to tell Heroku it's a Clojure project. Although I haven't tested that with nvim or CoC yet

Chase14:03:14

Yeah I think it was because of the recent change to clojure-lsp that now scans all available classpaths mentioned by Leaf Garland above. I don't think I see the error anymore since creating a minimally correct project.clj but I haven't tried to deploy to heroku recently either.

👍 1