Fork me on GitHub
#vim
<
2021-09-15
>
Chase00:09:04

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?

rwstauner00:09:57

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

rwstauner00:09:19

usually the installer will append a line like that for you

rwstauner00:09:44

[ -f ~/.fzf.bash ] && source ~/.fzf.bash

Chase00:09:01

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.

fedreg00:09:08

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

rwstauner00:09:24

are you using bash? and does ~/.fzf.bash exist?

rwstauner00:09:44

you could try just sourcing it in your current shell to see if it adds the behavior you are looking for

Chase00:09:44

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' }

fenoloftaleina12:09:11

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?

dominicm20:09:10

The rebel helper is very very out of date.

dominicm20:09:29

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

fenoloftaleina21:09:57

Not a pro anymore. Don’t know if I ever have been.

😂 2
harryvederci12:09:47

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?

Jason Paterson14:09:52

The highlight group with treesitter is clojureTSSymbol links to TSSymbol

Jason Paterson14:09:48

In clojure at least

harryvederci14:09:28

Alright! I don't have any experience with treesitter yet, but at least that gives me something to look for, thanks!

Jason Paterson14:09:47

Oh, that is only the group for keywords. It wouldn't highlight if you were using something else, say strings, as keys.

dominicm20:09:12

@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

👍 2