added mini surround

This commit is contained in:
Oliver Hartmann 2024-06-16 22:48:08 +02:00
parent 7cc886c641
commit 3860fb3d73
3 changed files with 22 additions and 13 deletions

View File

@ -1,7 +1,6 @@
return {
'folke/flash.nvim',
event = 'VeryLazy',
---@type Flash.Config
opts = {
modes = {
search = {
@ -14,7 +13,7 @@ return {
},
keys = {
{
's',
'a',
mode = { 'n', 'x', 'o' },
function()
-- default options: exact mode, multi window, all directions, with a backdrop
@ -23,7 +22,7 @@ return {
desc = 'Flash jump',
},
{
'S',
'A',
mode = { 'n', 'o', 'x' },
function()
require('flash').treesitter()

View File

@ -0,0 +1,20 @@
return {
'echasnovski/mini.surround',
version = '*',
config = function()
require('mini.surround').setup({
mappings = {
add = 'sa', -- Add surrounding in Normal and Visual modes
delete = 'sd', -- Delete surrounding
find = 'sf', -- Find surrounding (to the right)
find_left = 'sF', -- Find surrounding (to the left)
highlight = 'sh', -- Highlight surrounding
replace = 'sr', -- Replace surrounding
update_n_lines = 'sn', -- Update `n_lines`
suffix_last = 'l', -- Suffix to search with "prev" method
suffix_next = 'n', -- Suffix to search with "next" method
},
})
end,
}

View File

@ -1,10 +0,0 @@
return {
'kylechui/nvim-surround',
version = '*', -- Use for stability; omit to use `main` branch for the latest features
event = 'VeryLazy',
config = function()
require('nvim-surround').setup({
-- Configuration here, or leave empty to use defaults
})
end,
}