Skip to content

Commit 52b1824

Browse files
fix(mini): Disable mini.surround by default to preserve native S key behavior
1 parent 6ba2408 commit 52b1824

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

init.lua

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -912,12 +912,17 @@ require('lazy').setup({
912912
-- - ci' - [C]hange [I]nside [']quote
913913
require('mini.ai').setup { n_lines = 500 }
914914

915+
-- Warning: This plugin sets default keymaps starting with `s`, which override Neovim's native `S`.
916+
-- It causes a short delay when pressing `s` due to keymap ambiguity.
917+
-- To keep Neovim's original `S` behavior, consider disabling this plugin by default,
918+
-- or customize the mappings to use different keys.
919+
--
915920
-- Add/delete/replace surroundings (brackets, quotes, etc.)
916921
--
917922
-- - saiw) - [S]urround [A]dd [I]nner [W]ord [)]Paren
918923
-- - sd' - [S]urround [D]elete [']quotes
919924
-- - sr)' - [S]urround [R]eplace [)] [']
920-
require('mini.surround').setup()
925+
-- require('mini.surround').setup()
921926

922927
-- Simple and easy statusline.
923928
-- You could remove this setup call if you don't like it,

0 commit comments

Comments
 (0)