From f0ec508a7281617ac47e3ef0cf6ed3438114c152 Mon Sep 17 00:00:00 2001 From: bh Date: Thu, 16 Apr 2026 19:09:38 +0800 Subject: Change surround plugin and change flash.nvim keybindings --- lua/config/flash.lua | 4 ++-- lua/plugins/init.lua | 13 +++++++------ 2 files changed, 9 insertions(+), 8 deletions(-) (limited to 'lua') diff --git a/lua/config/flash.lua b/lua/config/flash.lua index 5aca98d..73b471f 100644 --- a/lua/config/flash.lua +++ b/lua/config/flash.lua @@ -9,8 +9,8 @@ return function() }, }) - vim.keymap.set({ 'n', 'x', 'o' }, 's', function() flash.jump() end, { desc = 'Flash' }) - vim.keymap.set({ 'n', 'x', 'o' }, 'S', function() flash.treesitter() end, { desc = 'Flash Treesitter' }) + vim.keymap.set({ 'n', 'x', 'o' }, 'gs', function() flash.jump() end, { desc = 'Flash' }) + vim.keymap.set({ 'n', 'x', 'o' }, 'gS', function() flash.treesitter() end, { desc = 'Flash Treesitter' }) vim.keymap.set('o', 'r', function() flash.remote() end, { desc = 'Remote Flash' }) vim.keymap.set({ 'o', 'x' }, 'R', function() flash.treesitter_search() end, { desc = 'Treesitter Search' }) vim.keymap.set({ 'c' }, '', function() flash.toggle() end, { desc = 'Toggle Flash Search' }) diff --git a/lua/plugins/init.lua b/lua/plugins/init.lua index 3a9af0c..394a75c 100644 --- a/lua/plugins/init.lua +++ b/lua/plugins/init.lua @@ -23,12 +23,11 @@ return { }, -- Surround - { - "kylechui/nvim-surround", - version = "^3.0.0", -- Use for stability; omit to use `main` branch for the latest features - event = "VeryLazy", + { + 'nvim-mini/mini.surround', + version = false, config = function() - require("nvim-surround").setup({}) + require("mini.surround").setup({}) end }, @@ -133,7 +132,9 @@ return { { 'chentoast/marks.nvim', event = 'VeryLazy', - opts = {}, + opts = { + default_mappings = false, + }, }, -- Flash (quick navigation) -- cgit v1.2.3