nvim-sort
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.
Project articles
| Name | Last modified | Size | Description |
|---|---|---|---|
| nvim-sort.md | 2026-08-28 14:05 | 2.0K | Lua functions for sorting and removing duplicate lines in Neovim. |