vim

For discussion on all things (neo)vim.
yiorgos 2020-11-05T12:58:00.163800Z

Hello, is anyone using fireplace with tpope/vim-repeat? I am trying to use . to repeat the last command eg :Eval but I don’t really know how to do it

yiorgos 2020-11-05T12:58:33.164700Z

in the Readme says to add somthing like this silent! call repeat#set("\<Plug>MyWonderfulMap", v:count)

yiorgos 2020-11-05T12:58:59.165100Z

but I vimscript skills are very poor

dominicm 2020-11-05T13:16:57.166Z

@g3o that's not what vim repeat does. It repeats things like "yaf".

yiorgos 2020-11-05T13:17:46.166200Z

oh I see

yiorgos 2020-11-05T13:18:04.166600Z

my bad, I misunderstood the concept

2020-11-05T15:00:09.171400Z

Does vim-iced auto-indent when printing to iced_stdout? I can't seem to get that behaviour, although from the docs, it seems that's what it's supposed to do.

practicalli-john 2020-11-05T15:03:47.173800Z

I've added SpaceVim to the Clojure aware editors in the Practicalli Clojure book. SpaceVim is a very nice vim experience especially for those new to vim (or people who do not have the time to build their own detailed configuration). http://practicalli.github.io/clojure/clojure-editors/editor-install-guides/spacevim-fireplace.html In the suggested configuration, I've added clj-kondo as a linter via ALE. Also added a few other layers that should be useful. The Clojure layer uses vim-fireplace and works well, although seems minimal compared to other editors. I would be interested in suggestions on how to improve the Clojure layer or plugins to add. Thanks

πŸ‘ 3
uosl 2020-11-05T16:46:05.174300Z

I've always had that. How are you printing? I'm using <Plug>(iced_print_last).

πŸ‘ 1
Gleb Posobin 2020-11-05T19:20:08.175900Z

Is there a way to make vim show function's arguments when writing the call for it, like emacs does in the minibuffer? When I type (f |) , I want vim to tell me which arguments f takes. Emacs would display (f arg1 arg2) in the minibuffer, with arg1 in bold. I am using fireplace and conjure.

dominicm 2020-11-05T19:30:28.177600Z

@posobin shougo has a plugin that does that I think

kozmicluis 2020-11-05T19:37:53.179300Z

I use CoC as my autocomplete and language server plugin and it does exactly that for almost every language but clojure; sure it has documentation and autocompletion but it doesn't show arguments as you type. I am not sure if deoplete will do it but it's worth the try.

dominicm 2020-11-05T19:43:02.179600Z

It's independent of deoplete

dominicm 2020-11-05T19:46:42.179800Z

https://github.com/Shougo/echodoc.vim

Gleb Posobin 2020-11-05T19:51:19.180400Z

@dominicm Yes, just found it too! Can't make it work yet though.

Jan K 2020-11-05T20:09:00.183500Z

Closest thing I know is using omnicomplete (ctrl+x, ctrl+o) with vim-fireplace, which shows arglists + docstring in preview window, but cursor has to be placed at end of the function symbol (in insert mode). Use set completeopt+=menuone so it also works with an exact match.

2020-11-05T21:04:17.183900Z

Evaluating (println something) will not indent outputs automatically in stdout buffer. Only following commands will do for now. - https://liquidz.github.io/vim-iced/vim-iced.html#%3AIcedPrintLast - https://liquidz.github.io/vim-iced/vim-iced.html#%3CPlug%3E(iced_eval_and_print)

2020-11-05T21:26:21.184200Z

Yep, that's what I was doing wrong, expecting println to indent. Thanks!