Skip to content

Commit e338941

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

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

init.lua

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -912,12 +912,19 @@ 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+
--
920+
-- Use `:help map-ambiguous` to see more information.
921+
--
915922
-- Add/delete/replace surroundings (brackets, quotes, etc.)
916923
--
917924
-- - saiw) - [S]urround [A]dd [I]nner [W]ord [)]Paren
918925
-- - sd' - [S]urround [D]elete [']quotes
919926
-- - sr)' - [S]urround [R]eplace [)] [']
920-
require('mini.surround').setup()
927+
-- require('mini.surround').setup()
921928

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

0 commit comments

Comments
 (0)