From 28b3ecbe5f62dabd186c24761d8bdbfd56bb9f04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=86=B0=E9=BE=8D=E8=88=87=E9=9B=AA=E9=A2=A8=E7=9A=84?= =?UTF-8?q?=E5=B7=A5=E4=BD=9C=E5=AE=A4?= <57035251+SetsuikiHyoryu@users.noreply.github.com> Date: Mon, 19 May 2025 17:16:59 +0900 Subject: [PATCH] fix(mini): disable `mini.surround` by default to preserve native `S` key behavior --- init.lua | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/init.lua b/init.lua index b98ffc61..26e5d033 100644 --- a/init.lua +++ b/init.lua @@ -912,12 +912,19 @@ require('lazy').setup({ -- - ci' - [C]hange [I]nside [']quote require('mini.ai').setup { n_lines = 500 } + -- Warning: This plugin sets default keymaps starting with `s`, which override Neovim's native `s`. + -- It causes a short delay when pressing `s` due to keymap ambiguity. + -- To keep Neovim's original `s` behavior, consider disabling this plugin by default, + -- or customize the mappings to use different keys. + -- + -- Use `:help map-ambiguous` to see more information. + -- -- Add/delete/replace surroundings (brackets, quotes, etc.) -- -- - saiw) - [S]urround [A]dd [I]nner [W]ord [)]Paren -- - sd' - [S]urround [D]elete [']quotes -- - sr)' - [S]urround [R]eplace [)] ['] - require('mini.surround').setup() + -- require('mini.surround').setup() -- Simple and easy statusline. -- You could remove this setup call if you don't like it,