refactoring.nvim
sideways.vim
refactoring.nvim | sideways.vim | |
---|---|---|
37 | 13 | |
2,475 | 483 | |
- | - | |
8.8 | 5.5 | |
about 2 months ago | 6 months ago | |
Lua | Ruby | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
refactoring.nvim
-
My 2024 PDE: NeoVim
Treesitter is a syntax parser that'll build a tree-like structure to enable anything from excellent syntax highlighting through to complex refactoring. There are so many creative ways you can use Treesitter, from jumping around text objects to commenting sections of code, it's a must-have in my books.
-
Refactoring tools
Is there any refactoring plugins for Neovim besides https://github.com/ThePrimeagen/refactoring.nvim?
-
change arguments of a function
refactoring.nvim is, that I know of, the closest we have to IDE-like refactoring features such as this, but does not have this feature. It would make C development much nicer imo. Perhaps a feature request there may gain traction.
-
What does it mean if TSNode:has_changes() returns true? (implementation of command-preview for refactoring.nvim)
I'm trying to make a naive implementation of command-preview for refactoring.nvim. Currently, my naive implementation is working (since the changes made to a buffer for previewing are discarded by neovim, I'm executing the plugin regularly in order to preview the changes and when the user submits the command to make the changes).
-
First PR using NeoVim, but need help moving forward
refactoring.nvim and null-ls.nvim may help
-
In neovim ,how to do refactoring python code?
refactoring.nvim is one option. Unfortunately what powers VSCode is the proprietary PyLance and AFAIK there is no way to "Move symbol to file (method will be moved) [and have imports renamed subsequently]".
- Discussion: what functionality is Vim missing?
-
New Plugin: ruby toolkit
Just a heads up, I added a lot of Ruby support in ThePrimeagen's Refactoring.nvim plugin some time ago. Covers a lot of what you've created and has support for lots of other languages too
-
Treesitter query language
It's a pain to learn. I used the online playground and also read a lot of the queries from popular plugins. I contributed Ruby support to refactoring.nvim which helped me learn a tonne too
-
neovim-related: Are there good refactor plugin for elixir?
You might be able to take the ruby one and make an elixir one. It uses tree-sitter queries which you would need to align up with the elixir, but the syntax is kinda close. See https://github.com/ThePrimeagen/refactoring.nvim/blob/master/lua/refactoring/treesitter/langs/ruby.lua
sideways.vim
-
"vi," to select text between comma
There's a number of plugins for an "argument" text object (mine is sideways), but if you're just looking for a simple "change between commas", here's a great SO answer that explains how to create a mapping like that for yourself in two lines: https://stackoverflow.com/a/44109750/853920
-
mini.basics - Common configuration presets for options/mappings/autocommands
sideways.vim: move arguments left and right (I know this is nowadays done with tree sitter, but there isn't a ts grammar for everything so far)
-
Swapping words
Yeah, I use sideways.vim and vim-exchange. (Not entirely sure which solves what OP is asking about.)
- what is your startup time?
-
Swap any 2 comma separated selected WORDS
I use vim-sideways for this. If vim-swap doesn't work out, give it a shot!
- Features I miss from Jetbrains IDEs
-
How to insert text before end of a quote/brackets?
For the second case Sideways has SidewaysArgumentAppendLast. I mapped it to A (shouldn't conflict with other mappings).
-
How can I do delete in commas, change inside periods? Basically treating periods and commas like quotation, etc.
For argument lists, check out sideways.vim which is smart enough to shift arguments around instead of only selecting them.
-
How can i swap words ?
But there's also another "classic" plugin just for this use case: https://github.com/AndrewRadev/sideways.vim I've never used it though, so can't comment on its use, but it looks pretty good.
-
anyone know an elegant way to swap the orders of two parameters in a function call? foo(bar, baz) becomes foo(baz, bar)
Also not a native solution, but I've been using sideways.vim for a while. I have space as my leader and use leader-L and leader-R.
What are some alternatives?
nvim-lsp-ts-utils - Utilities to improve the TypeScript development experience for Neovim's built-in LSP client.
argtextobj.vim - Text-object like motion for arguments
react-extract.nvim - Neovim plugin for extracting jsx into React component
nvim-revJ.lua - Nvim-plugin for doing the opposite of join-line (J) of arguments written in lua.
rust.vim - Vim configuration for Rust.
VSCode-Hungry-Delete - To delete an entire block of whitespace or tab, and reduce the time programmers need to press backspace
pyright - Static Type Checker for Python
vim-argumentative - Argumentative aids with manipulating and moving between function arguments.
nvim-treesitter-refactor - Refactor module for nvim-treesitter
switch.vim - A simple Vim plugin to switch segments of text with predefined replacements
nvim-dap-ruby
splitjoin.vim - Switch between single-line and multiline forms of code