summaryrefslogtreecommitdiff
path: root/.config/nvim/lua/mango/remap.lua
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2023-11-06 02:27:38 +0100
committerThomas Voss <mail@thomasvoss.com> 2023-11-06 02:27:38 +0100
commit59bec87353bbfc4cccf1a94ad0aec606871eefc2 (patch)
tree9a777ae5f21164a23b9e09a3cfa52c67bbe9bd71 /.config/nvim/lua/mango/remap.lua
parente74474ed1bcc466656af0f59fb86ec499978f20b (diff)
nvim: Add remap to sort lines
Diffstat (limited to '.config/nvim/lua/mango/remap.lua')
-rw-r--r--.config/nvim/lua/mango/remap.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/.config/nvim/lua/mango/remap.lua b/.config/nvim/lua/mango/remap.lua
index 210bb12..a497b8b 100644
--- a/.config/nvim/lua/mango/remap.lua
+++ b/.config/nvim/lua/mango/remap.lua
@@ -67,3 +67,6 @@ end)
remap('n', 'g–', function()
vim.cmd('split | Ex')
end)
+
+-- Sort lines in selection
+remap('v', 's', ':sort<CR>')