ca1989
Refactoring in (neo)vim
Hi all,
is anyone using some plugin to do refactorings in neovim?
I’ve found this one, but it seems it doesn’t support Elixir:
https://github.com/ThePrimeagen/refactoring.nvim#supported-languages
Thank you
Most Liked
sodapopcan
I don’t find extractions to be a major pain-point in Vim so I have no good suggestions there. For renaming (or using an existing module as a template for a new one) I get a ton of mileage out of abolish.vim, especially when used in conjunction with your favourite quickfix-populating grep tool and :cdo.
EDIT: I actually do have some code I was working on for extractions that was based off a plugin tpope demo’d called Extract that he never released. I don’t find myself using it, though (and is not complete). tpope actually gave me the source for extract.vim over discord a while ago but it got lost on an old work computer without my ever trying it so ya, I really don’t feel too much pain, lol. But it was nice as it basically takes whatever you cut and pastes it along with whatever you replaced it with as a variable or function yet you have full control over where it gets pasted. In other words, there was a mapping like ]ev that would paste <whatever you last inserted> = <whatever you last deleted> (]ev meaning something like “paste down/extract/variable”)
Last Post!
ca1989
Popular in Questions
Other popular topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #elixirconf-us
- #advent-of-code
- #distillery
- #processes
- #forms
- #api
- #metaprogramming
- #security
- #hex









