This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-01-20
Channels
- # adventofcode (8)
- # aleph (2)
- # announcements (10)
- # aws (5)
- # aws-lambda (2)
- # babashka (23)
- # beginners (23)
- # biff (9)
- # calva (4)
- # cider (8)
- # clj-kondo (21)
- # clojure (77)
- # clojure-boston (1)
- # clojure-dev (50)
- # clojure-europe (36)
- # clojure-gamedev (3)
- # clojure-nl (1)
- # clojure-norway (3)
- # clojure-spec (33)
- # clojure-uk (3)
- # clojurescript (22)
- # core-async (3)
- # cursive (10)
- # datahike (18)
- # datalevin (1)
- # datascript (9)
- # deps-new (21)
- # emacs (11)
- # events (1)
- # graphql (11)
- # guix (26)
- # java (7)
- # jobs (3)
- # lsp (12)
- # malli (6)
- # pathom (33)
- # pedestal (3)
- # polylith (15)
- # reagent (5)
- # releases (3)
- # remote-jobs (1)
- # scittle (9)
- # sql (27)
- # tools-build (9)
- # vim (7)
Is there a neovim interface to do refactorings like moving a namespace?
I quite often start out working with one file, get something working, maybe add a few tests and a few usages to my nice new namespace.
Then I realize I should go from my single pizza.clj
file to pizza/toppings.clj
, pizza/ordering.clj
and so on, and I would like a smooth refactoring experience to do this.
Any advice?
Looks like clojure-lsp has support for this https://github.com/clojure-lsp/clojure-lsp/pull/1123. I think it's done through textDocument/rename
.
if you just want to rename the namespace updating all usages, then LSP rename is the way and works pretty well, if you wanna manually move a function to another ns, you have move-form
command but it's pretty experimental yet
vim-iced can do some sorts of refactoring: https://liquidz.github.io/vim-iced/#refactoring
@UKFSJSM38 Should there be a move-form
code action when your cursor is on a function definition? I am using version 2022.12.09-15.51.10 and don't see it under code actions.