indent-o-matic
vim-swap
indent-o-matic | vim-swap | |
---|---|---|
6 | 6 | |
164 | 287 | |
- | - | |
3.1 | 0.0 | |
12 months ago | 9 months ago | |
Lua | Vim Script | |
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.
indent-o-matic
-
Which vim plugins do not have a lua equivalent yet?
there is indent-o-matic
-
How have you configured indentation?
I use indent-o-matic, along with these defaults:
-
How to adapt indent to the current file ?
I use https://github.com/Darazaki/indent-o-matic currently and set it with a keymap when that fails.
-
Is there an equivalent to :setlocal {option}< using Lua?
I do use a plugin to match the indentation of existing files (indent-o-matic), and that overrides my own indentation preferences; matching the indentation style of an existing codebase is more important than my own preferences or a language style guide. But if I'm starting a new project I stick to tabs for accessibility (unless it would cause whitespace syntax problems).
-
guess-indent — Automatic indentation style detection plugin for neovim
How does it compare to IndentOMatic?
- indent-o-matic: Dumb automatic fast indentation detection for Neovim written in Lua
vim-swap
-
Which vim plugins do not have a lua equivalent yet?
Only one I use that hasn't been mentioned is a standalone vim-swap replacement. The existing ones all need treesitter (that I know of)
-
What is the coolest, unknown(-ish) plugin that you're using that other people could benefit from?
vim-swap provides an easy way to swap delimited items. It also provides textobjects targeting them, so deleting an argument becomes as easy as da,
-
Does the Neovim team have any plan to develop "User Custom Modes"
I use this feature right now, and it simplifies a lot. I use t to open tabmode so I can create or destroy tabs easily. b, which I use more often, opens bufmode so I can switch the buffer in the current window, or delete it while preserving my layout. gs allows me to swap delimited items using hjkl. w is for visually switching between open splits. Etc etc
-
Is there a plugin that provides "di," in neovim?
I recommend machakann/vim-swap. This plugin provides the way to swap function parameters, and text-objects that can be used to select parameters:
-
anyone know an elegant way to swap the orders of two parameters in a function call? foo(bar, baz) becomes foo(baz, bar)
I've been using vim-swap for a while and it's simple enough: when on top of a delimited argument, you can hit g> or g< to swap right or left, respectively.
- iswap.nvim: Interactively swap function arguments, list elements, and more using tree-sitter!
What are some alternatives?
trouble.nvim - 🚦 A pretty diagnostics, references, telescope results, quickfix and location list to help you solve all the trouble your code is causing.
targets.vim - Vim plugin that provides additional text objects
vim-sleuth - sleuth.vim: Heuristically set buffer options
vim-exchange - Easy text exchange operator for Vim
neorg - Modernity meets insane extensibility. The future of organizing your life in Neovim.
iswap.nvim - Interactively select and swap function arguments, list elements, and much more. Powered by tree-sitter.
nvim-dap - Debug Adapter Protocol client implementation for Neovim
nvim-treesitter-textobjects
telescope.nvim - Find, Filter, Preview, Pick. All lua, all the time.
telescope-undo.nvim - A telescope extension to view and search your undo tree 🌴
guess-indent.nvim - Automatic indentation style detection for Neovim
nvim-tabmode - A rewrite of Iron-E/vim-tabmode using Iron-E/nvim-libmodal