This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-11-22
Channels
- # announcements (1)
- # babashka (94)
- # beginners (11)
- # biff (9)
- # calva (21)
- # clj-kondo (14)
- # clojure (12)
- # clojure-europe (56)
- # clojure-nl (1)
- # clojure-norway (41)
- # clojure-uk (4)
- # clojurescript (4)
- # core-logic (2)
- # gratitude (12)
- # honeysql (1)
- # hoplon (3)
- # hugsql (7)
- # introduce-yourself (2)
- # jobs-discuss (23)
- # leiningen (3)
- # malli (11)
- # off-topic (1)
- # pedestal (11)
- # reagent (3)
- # squint (8)
- # vim (9)
- # xtdb (3)
Any Astrovim users know how to jump from function to function or form to form? 👀 I'm used to vim-sexp and vim-sexp-mappings-for-regular-people, I can't seem to figure out the equivalent or perhaps replacement?
I havent seen specifics for navigating between expressions in a file, Mostly I use /
search to move around or 10 j
to jump lines. However, I also use some LSP magic...
g d
will jump to definitions, including let and function args
SPC l s
shows symbols in telescope popup
SPC l S
shows symbols in a new buffer
Otherwise try adding the vim-sexp mappings package or investigate some more neovim navigation options, e.g some hints in this stack exchange post https://vi.stackexchange.com/a/35201
I would also find it useful to learn more about neovim built-in tools for navigating code and any lua plugins that help with Clojure
%
is useful to jump between matching parens (open close parens). I use this with visual select to cut and move expressions around
Perfect, this plugin is exactly what I'm looking for! Thanks @U05254DQM!
@UAJLHU1V1 let me know how you get on with the plugin and I'll add a configuration to the Astronvim community Clojure pack. I am interested in knowing if there are any key binding conflicts with existing Astronvim keys
It's working great so far. Slurping and barfing don't play nice with parinfer as you might expect but haven't come across any surprises yet.
Thanks for the feedback Sam. I'll hopefully do some coding myself and see if I can make some useful tweaks to the AstroNvim Clojure pack (or add docs & examples to override parinfer)