This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-07-23
Channels
- # announcements (1)
- # aws (13)
- # babashka (31)
- # beginners (102)
- # calva (46)
- # cider (16)
- # clj-kondo (1)
- # cljs-dev (3)
- # clojars (1)
- # clojure (396)
- # clojure-argentina (1)
- # clojure-australia (4)
- # clojure-europe (64)
- # clojure-nl (2)
- # clojure-uk (8)
- # clojurescript (20)
- # conjure (5)
- # cursive (4)
- # datomic (15)
- # emacs (48)
- # graalvm (69)
- # graalvm-mobile (1)
- # jobs (4)
- # jobs-rus (1)
- # lsp (6)
- # malli (15)
- # meander (2)
- # observability (11)
- # off-topic (10)
- # pathom (2)
- # portal (4)
- # re-frame (19)
- # reitit (1)
- # remote-jobs (3)
- # sci (1)
- # shadow-cljs (51)
- # tools-deps (11)
- # vim (12)
- # xtdb (13)
Also if youโre on a clojure slack you probably think Lua is hideous (I do) in which case you should consider writing your config in Fennel, which is very clojure-like
How are you guys configuring highlighting with treesitter? The best I got was with the config below, but the highlighting looks "worse" (fewer things highlighted) than without TS. (This is after doing :TSInstall clojure
)
require'nvim-treesitter.configs'.setup {
highlight = {
enable = true,
additional_vim_regex_highlighting = true,
},
rainbow = {
enable = true,
extended_mode = true,
}
}
EOF
You need to make sure the treesitter grammer for clojure is installed. This is done with the ensure_installed property https://github.com/berkeleytrue/dotfiles/blob/master/.config/nvim/fnl/plugins/tree-sitter.fnl#L64 (fennel not lua but should be able to get the gist)
Then you need to actually install the grammers using the ts commands (it might actually auto install on start up. Don't remember)
You can also add queries if you feel like the clojure ones are lacking https://github.com/berkeleytrue/dotfiles/blob/master/.config/nvim/after/queries/clojure/highlights.scm
Although there is a refactor coming for the hightlights.
Also, you might want to install https://github.com/nvim-treesitter/playground
It let's you play around with queries and also see what highlight TS is applying for a given keyword