added mini surround
This commit is contained in:
parent
7cc886c641
commit
3860fb3d73
@ -1,7 +1,6 @@
|
|||||||
return {
|
return {
|
||||||
'folke/flash.nvim',
|
'folke/flash.nvim',
|
||||||
event = 'VeryLazy',
|
event = 'VeryLazy',
|
||||||
---@type Flash.Config
|
|
||||||
opts = {
|
opts = {
|
||||||
modes = {
|
modes = {
|
||||||
search = {
|
search = {
|
||||||
@ -14,7 +13,7 @@ return {
|
|||||||
},
|
},
|
||||||
keys = {
|
keys = {
|
||||||
{
|
{
|
||||||
's',
|
'a',
|
||||||
mode = { 'n', 'x', 'o' },
|
mode = { 'n', 'x', 'o' },
|
||||||
function()
|
function()
|
||||||
-- default options: exact mode, multi window, all directions, with a backdrop
|
-- default options: exact mode, multi window, all directions, with a backdrop
|
||||||
@ -23,7 +22,7 @@ return {
|
|||||||
desc = 'Flash jump',
|
desc = 'Flash jump',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'S',
|
'A',
|
||||||
mode = { 'n', 'o', 'x' },
|
mode = { 'n', 'o', 'x' },
|
||||||
function()
|
function()
|
||||||
require('flash').treesitter()
|
require('flash').treesitter()
|
||||||
|
20
lua/plugins/mini-surround.lua
Normal file
20
lua/plugins/mini-surround.lua
Normal 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,
|
||||||
|
}
|
@ -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,
|
|
||||||
}
|
|
Loading…
x
Reference in New Issue
Block a user