This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-09-15
Channels
- # announcements (51)
- # beginners (65)
- # calva (44)
- # cider (6)
- # clara (3)
- # clj-kondo (30)
- # cljsrn (5)
- # clojure (63)
- # clojure-australia (7)
- # clojure-dev (7)
- # clojure-europe (43)
- # clojure-gamedev (1)
- # clojure-nl (6)
- # clojure-uk (7)
- # clojurescript (51)
- # conjure (1)
- # cursive (9)
- # datascript (16)
- # datomic (14)
- # depstar (20)
- # events (1)
- # exercism (17)
- # figwheel-main (6)
- # fulcro (9)
- # graphql (3)
- # gratitude (2)
- # honeysql (4)
- # jobs (7)
- # leiningen (3)
- # lsp (107)
- # meander (7)
- # minecraft (3)
- # off-topic (16)
- # other-languages (4)
- # pathom (4)
- # pedestal (26)
- # practicalli (4)
- # re-frame (3)
- # reitit (7)
- # remote-jobs (1)
- # shadow-cljs (26)
- # tools-deps (67)
- # vim (19)
- # vscode (1)
Little off topic but I always install fzf
via nvim but this also allowed me to use it in my bash shell. This meant that when I hit Ctrl-R
(in bash, not nvim, this is offtopic, sorry) it would use fzf to show me all the previous commands I had input and fuzzy search down to what I wanted. But for some reason I don't get that anymore. I get the (reverse-i-search)
prompt when entering Ctrl-R
. I miss my fzf
command search so much. Any clues on how I get it back?
don't know much about how you're installing it or what has changed but i'd check your ~/.bashrc for a source
line for some fzf file
hmmm, that line was not in my .bashrc
so I added it but no change in behavior after shell restart. I can use the fzf
command in my bash terminal to have it show all the files in the directory so it is installed.
You can also un-install / re-install it and it will prompt you again to get set on your terminal. (on Mac at least) https://github.com/junegunn/fzf#installation I just had the same thing happen a couple weeks ago
you could try just sourcing it in your current shell to see if it adds the behavior you are looking for
I got it! For some reason the vim plug command in the repo instructions does not work. I had to reinstall with an old version of my init.vim
that had this instead: Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' }
Hi, today is the day I realised that for years I should have been getting pretty-printed results from vim-fireplace eval and I hadn’t… I’m using the latest neovim, my project setup comes from https://github.com/juxt/edge/ and I’m using the rebel repl helper that comes with it (docs here: https://www.juxt.land/edge/docs/dev-guide.html).
• This should work right out of the box, no? I should have some (most likely fipp based) pretty printer set in the nrepl.middleware.print/*print-fn*
?
• If not, how do I set it up?
The rebel helper is really for beginners who are new to Clojure and don't have their own dev setup. For pros like you I'd suggest https://github.com/clojure-vim/vim-jack-in or https://docs.cider.mx/cider-nrepl/usage.html#via-clj
Clojure/Fennel/Janet syntax highlighting question: Does anyone know a way to get a visual indicator of the keys in a hashmap? So in this example:
{:some-key "value-1"
:some-other-key "value-2"}
The text `:some-key` and `:some-other-key` would get a blue background to indicate those are the keys.
I think this would really help in seeing the distinction between keys and values at a quick glance.
Should be possible, right? Perhaps with Treesitter?The highlight group with treesitter is
clojureTSSymbol links to TSSymbol
In clojure at least
Alright! I don't have any experience with treesitter yet, but at least that gives me something to look for, thanks!
Oh, that is only the group for keywords. It wouldn't highlight if you were using something else, say strings, as keys.
@UG1C3AD5Z would know if this was possible. @U0182NL5HEZ if you wanted to take a stab yourself, the repo would be https://github.com/sogaiu/tree-sitter-clojure