vim

For discussion on all things (neo)vim.
walterl 2020-11-23T13:19:04.200600Z

Does anyone know how I can get indentation support for CIDER's :style/indent metadata in vim? https://docs.cider.mx/cider/0.26/config/indentation.html

nbardiuk 2020-11-23T13:56:14.200700Z

I use vim-clojure-static syntax plugin which has configuration for indentation. Have a look at docs maybe it has options to reproduce indentation you need https://github.com/guns/vim-clojure-static/blob/master/doc/clojure.txt

walterl 2020-11-23T15:10:55.201200Z

I use vim-clojure-static too (via vim-polyglot), but it doesn't look like it understands :style/indent.

2020-11-23T20:30:13.201400Z

right, you could hard code a rule for vim-clojure-static, but to use that metadata you probably want something that talks to a running process (eg. fireplace etc.), not a static plugin

2020-11-23T20:31:49.201600Z

and as an aside, I find the idea of defining source layout preferences in code so that an editor queries them from a program kind of gross, it's the kind of violation of abstraction boundary that made me switch from emacs to vim in the first place

2020-11-23T20:31:54.201800Z

but that's just my opinion

2020-11-23T23:43:24.202600Z

Is there some way to use vim-iced to browse arbitrary namespaces rather than just ones that I've required?

2020-11-26T13:28:06.203100Z

Yeah, that seems to be what I was looking for. Not exactly, because it requires ctrlp and I'm a happy fzf user, but in theory the plugin does what I was asking about. Thank you.

2020-11-26T23:28:28.215300Z

fzf is supported by vim-iced now, so you don't need ctrlp! I'll fix this plugin in this weekend.

2020-11-26T23:30:13.215500Z

Oh, awesome. Thanks again!

2020-11-28T23:14:43.217600Z

@randumbo I fixed this plugin. Please update both of vim-iced itself and this plugin 😄

2020-11-29T16:44:24.217800Z

@liquidz.uo the plugin is helpful, but not exactly what I was looking for. I want something that'll give me the ability to jump to my dependency namespaces. I can navigate to definition using c-], but if I don't require a namespace, I can't jump to it. Of course it's possible to edit :require, include the ns, and then jump to it, but that's a somewhat awkward workflow. Maybe what I'm looking for is outside the scope of vim-iced? I'm not sure.