Add sort.nvim

https://github.com/sQVe/sort.nvim
This commit is contained in:
Oliver Davies 2024-09-13 22:04:20 +01:00
parent 79973e3eb3
commit f2bc6066d3
2 changed files with 11 additions and 0 deletions

View file

@ -60,6 +60,7 @@ rec {
nvim-web-devicons
oil-nvim
refactoring-nvim
sort-nvim
standard-vim
tabline-vim
treesj

10
plugin/sort.lua Normal file
View file

@ -0,0 +1,10 @@
require("sort").setup()
vim.cmd([[
nnoremap <silent> go" vi"<Esc><Cmd>Sort<CR>
nnoremap <silent> go' vi'<Esc><Cmd>Sort<CR>
nnoremap <silent> go( vi(<Esc><Cmd>Sort<CR>
nnoremap <silent> go[ vi[<Esc><Cmd>Sort<CR>
nnoremap <silent> gop vip<Esc><Cmd>Sort<CR>
nnoremap <silent> go{ vi{<Esc><Cmd>Sort<CR>
]])