Adding surround plugin

This commit is contained in:
Juan Miguel Rúa 2024-07-01 21:16:59 +02:00
parent 649367e357
commit 35aeb42a0a
2 changed files with 20 additions and 2 deletions

View File

@ -15,14 +15,14 @@
======== `"")----------------(""` ___________ ======== ======== `"")----------------(""` ___________ ========
======== /::::::::::| |::::::::::\ \ no mouse \ ======== ======== /::::::::::| |::::::::::\ \ no mouse \ ========
======== /:::========| |==hjkl==:::\ \ required \ ======== ======== /:::========| |==hjkl==:::\ \ required \ ========
======== '""""""""""""' '""""""""""""' '""""""""""' ======== ======== '""""""""""""' '""""""""""""' '"""""""""' ========
======== ======== ======== ========
===================================================================== =====================================================================
===================================================================== =====================================================================
What is Kickstart? What is Kickstart?
Kickstart.nvim is *not* a distribution. Kickstart.nvim is *not* a distribution.
Kickstart.nvim is a starting point for your own configuration. Kickstart.nvim is a starting point for your own configuration.
The goal is that you can read every line of code, top-to-bottom, understand The goal is that you can read every line of code, top-to-bottom, understand

View File

@ -0,0 +1,18 @@
return {
{ -- https://github.com/echasnovski/mini.surround
'echasnovski/mini.surround',
version = false,
recommended = true,
opts = {
mappings = {
add = 'gsa', -- Add surrounding in Normal and Visual modes
delete = 'gsd', -- Delete surrounding
find = 'gsf', -- Find surrounding (to the right)
find_left = 'gsF', -- Find surrounding (to the left)
highlight = 'gsh', -- Highlight surrounding
replace = 'gsr', -- Replace surrounding
update_n_lines = 'gsn', -- Update `n_lines`
},
},
},
}