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
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
I use vim-clojure-static too (via vim-polyglot), but it doesn't look like it understands :style/indent
.
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
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
but that's just my opinion
Is there some way to use vim-iced to browse arbitrary namespaces rather than just ones that I've required?
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.
fzf is supported by vim-iced now, so you don't need ctrlp! I'll fix this plugin in this weekend.
Oh, awesome. Thanks again!
@randumbo I fixed this plugin. Please update both of vim-iced itself and this plugin 😄
@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.