Skip to content

fix(mini): disable mini.surround by default to preserve native S key behavior #1553

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down