A Neovim plugin that keeps the cursor stationary when using shift and filter actions.
stay-in-place.nvim is a Neovim plugin that prevents the cursor from moving when performing shift (indentation) and filter (formatting) actions. It solves the annoyance of cursor jumps during common text operations, keeping the cursor position stable for a smoother editing workflow.
Neovim users who frequently use indentation and formatting commands and want to maintain cursor position for better editing efficiency.
Developers choose this plugin because it directly addresses a specific, frustrating default behavior in Neovim, offering a lightweight solution that improves productivity without configuration overhead.
Neovim plugin that prevent cursor from moving when using shift and filter actions.
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Prevents jumps when using `>`, `<`, or `=` operators, as demonstrated in the demo, keeping the cursor fixed during indentation and formatting.
Retains visual mode selections after operations, avoiding the need to re-select, which streamlines block editing workflows.
Focuses solely on fixing cursor movement without bloat, adhering to Neovim's philosophy of composability and simplicity.
Offers straightforward options like `set_keymaps` and `preserve_visual_selection` that can be tweaked or left at defaults for quick setup.
Only addresses shift and filter operations; other common commands like yank or delete that move the cursor are not covered, requiring additional solutions.
With `set_keymaps` enabled by default, it may override user-defined mappings without explicit warning, necessitating manual configuration.
Requires Neovim >= 0.7.0, excluding users on older versions or stable distributions, limiting adoption in some environments.