align.nvim
align.nvim copied to clipboard
A minimal plugin for NeoVim for aligning lines
Neovim nightly supports inccommand previews in user commands. See: https://neovim.io/doc/user/map.html#:command-preview
Fix #19 When the preview buffer was deleted, it also close the window. So changing the current buffer of the window first prevent this.
When the first line was included in visual text, the align plugin cannot work. But if I move the text to second line, and the plugin work again. This gif...
[Screencast from 2023-12-05 15-51-20.webm](https://github.com/Vonr/align.nvim/assets/22127600/e5d5d6a6-6d30-4158-a31f-4d5a4b8c8edd) If you try to align including the first line in a file - nothing happens.
Usage: ```lua rekey_visual('A', 'lua require("align").align_to_string({ preview = true, regex = false, reverse = false })') -- align from left. rekey_visual('a', 'lua require("align").align_to_string({ preview = true, regex = false, reverse =...
For example in the snippet below: ```lua map("n", "", "", "Move window to the left") map("n", "", "", "Move window down") map("n", "", "", "Move window up") map("n", "", "",...
[Screencast from 2023-12-05 15-50-48.webm](https://github.com/Vonr/align.nvim/assets/22127600/e3398890-3347-4723-9201-09d1a062c309) If you add tab as an indent, plugin aligns at the character after the one you specify.
As title, see: https://user-images.githubusercontent.com/24765272/195490566-7528f3fd-fd0e-41bd-8b4f-3ef929ba568f.mov
I wanted to point out that the documentation is unclear and lacks adequate instructions for beginners with Lua and LazyVim (NeoVim) on how to start using the plugin. As a...