fix(mini): disable mini.surround
by default to preserve native S
key behavior
#1553
+8
−1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I have confirmed the source code of
mini.surround
(mini.nvim/lua/mini/surround.lua
). Itssetup
function looks like this:If the user does not modify
config
,setup_config
will use thedefault_config
:In
default_config.mappings
, multiple mappings start with the characters
:These mappings are then applied in the
apply_config
function called aftersetup
:The Neovim documentation on mappings (
nvim/runtime/doc/map.txt
) in themap-ambiguous
section states:I don't need the features this plugin provides, and it significantly disrupts the feel of my normal workflow.
I also see the #1328.
Therefore, I believe this plugin should be disabled by default, with a note explaining that its default mappings interfere with Neovim’s native
S
key behavior. Users should enable it consciously, understanding this limitation, or customize the mappings to avoid conflicts.I believe beginner-friendly configurations should not include hidden side effects—especially those that override native key behaviors. If there's a strong reason this plugin must be enabled by default, please keep the warning comment to inform users.