feat: mini.surround
This commit is contained in:
parent
1183178899
commit
e8f75bb299
3 changed files with 30 additions and 2 deletions
|
@ -100,6 +100,7 @@ with final.pkgs.lib; let
|
|||
ts-comments-nvim
|
||||
mini-comment
|
||||
mini-ai
|
||||
mini-surround
|
||||
|
||||
# Formatting
|
||||
conform-nvim
|
||||
|
|
|
@ -5,8 +5,9 @@ return {
|
|||
req('friendly-snippets'),
|
||||
req('lexima-vim'),
|
||||
req('luasnip'),
|
||||
req('neotab-nvim'),
|
||||
req('ts-comments-nvim'),
|
||||
req('mini-ai'),
|
||||
req('mini-comment'),
|
||||
req('mini-surround'),
|
||||
req('neotab-nvim'),
|
||||
req('ts-comments-nvim'),
|
||||
}
|
||||
|
|
26
nvim/lua/plugins/coding/mini-surround.lua
Normal file
26
nvim/lua/plugins/coding/mini-surround.lua
Normal file
|
@ -0,0 +1,26 @@
|
|||
local keys = {
|
||||
add = 'gsa',
|
||||
delete = 'gsd',
|
||||
find = 'gsf',
|
||||
find_left = 'gsF',
|
||||
highlight = 'gsh',
|
||||
replace = 'gsr',
|
||||
update_n_lines = 'gsn',
|
||||
}
|
||||
return {
|
||||
'mini.surround',
|
||||
keys = {
|
||||
{ keys.add, desc = 'add surrounding', mode = { 'n', 'v' } },
|
||||
{ keys.delete, desc = 'delete surrounding' },
|
||||
{ keys.find, desc = 'find right surrounding' },
|
||||
{ keys.find_left, desc = 'find left surrounding' },
|
||||
{ keys.highlight, desc = 'highlight surrounding' },
|
||||
{ keys.replace, desc = 'replace surrounding' },
|
||||
{ keys.update_n_lines, desc = 'update n_lines' },
|
||||
},
|
||||
after = function()
|
||||
require('mini.surround').setup({
|
||||
mappings = keys,
|
||||
})
|
||||
end,
|
||||
}
|
Loading…
Reference in a new issue