project
nvim-sort
Lua functions for sorting and removing duplicate lines in Neovim selections, built for quick daily use.
1 related articles
nvim-sort is a pair of Lua functions for sorting and removing duplicate lines in Neovim selections.
I built it because what I wanted to do dozens of times a day was exactly that: mark a block of lines, sort, drop duplicates, close. Neovim already has :sort and :sort u, but I wanted something mapped to a single key, with no :, no confirmation, no thinking.
Not a formal plugin and not aiming to become one. It’s a Lua file, you load it from your init.lua, and move on.