This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-03-12
Channels
- # announcements (19)
- # babashka (33)
- # beginners (96)
- # bitcoin (6)
- # cider (11)
- # circleci (5)
- # clj-kondo (22)
- # cljs-dev (4)
- # cljsjs (2)
- # clojure (65)
- # clojure-australia (9)
- # clojure-berlin (1)
- # clojure-europe (53)
- # clojure-italy (2)
- # clojure-nl (2)
- # clojure-uk (42)
- # clojurescript (9)
- # conjure (1)
- # cursive (33)
- # data-oriented-programming (1)
- # data-science (6)
- # datomic (12)
- # emacs (12)
- # fulcro (7)
- # graphql (4)
- # honeysql (5)
- # jobs (2)
- # juxt (8)
- # lsp (30)
- # malli (9)
- # off-topic (9)
- # other-languages (1)
- # re-frame (17)
- # reagent (11)
- # reitit (5)
- # releases (2)
- # remote-jobs (3)
- # shadow-cljs (39)
- # spacemacs (6)
- # sql (2)
- # testing (3)
- # tools-deps (43)
- # vim (5)
- # xtdb (11)
I find the default symbol highlighting can get quite annoying at times.
The variable lsp-enable-symbol-highlighting nil
in the lsp package config (layer variable in Spacemacs) switches it off by default. lsp-toggle-symbol-highlight
will toggle symbol highlighting on and off.
i recommend not turning it off, but changing face to a less distracting one. it is very useful to have a look and see where else var has been used
(set-face-foreground 'lsp-face-highlight-textual nil)
(set-face-background 'lsp-face-highlight-textual nil)
(set-face-attribute 'lsp-face-highlight-textual nil :weight 'extra-bold)
(set-face-attribute 'lsp-face-highlight-textual nil :underline t)
@U0BBFDED7 hmm, I get an error Invalid face: lsp-face-highlight-textual
using that configuration
I'll try using setq instead of set-face, that seemed to work better
This config did change the faces, but it was still quite distracting, so will try your suggested values
(setq lsp-face-highlight-read '((t (:background "#F8F6D8" :box (:line-width 2 :color "#C6C5AD" :style released-button)))))
(setq lsp-face-highlight-textual '((t (:inherit lsp-face-highlight-read))))
the doom-gruvbox-light theme I use has a burnt orange color which makes highlighted test hard to read. I hacked the them to remove the background color and add bold, much nicer now.
Was there a change in how cache is stored by default with regards to clj-kondo? I just noticed that if I have no kondo cache or .lsp directory in a project, after clojure-lsp starts, I only have a .lsp
directory with a sqlite.db file, but no cache files anywhere. CC @borkdude
but the cache dir is configurable using the --cache
argument, so it can be changed by downstream tools
Hmm. Well, currently with clojure-lsp in Calva, if I open a fresh project, after lsp starts and I see linting, there's still no cache directory. I'm not sure if there's something wrong, but in the past a cache directory was created in the project.
@brandon.ringe if there is no .clj-kondo
dir, then clj-kondo won't create a .cache
inside of it
Ahh I see. I thought I also recalled a kondo cache dir inside the .lsp dir. But that may have actually been changed. I know there was discussion around cache locations
.clj-kondo serves 3 purposes: indicate the root of your sources, permission to save cache and config location
And there is a reason for having both a .cache
and a cache
directory in .clj-kondo
? I notice when clojure-lsp starts, if I have an empty .clj-kondo
directory, I get both those cache directories. This may be more a question for @ericdallo