kylechui / nvim-surround

Add/change/delete surrounding delimiter pairs with ease. Written with :heart: in Lua.
MIT License
2.92k stars 60 forks source link

This plugin breaks `ciw`: it is interpreted as `icw` #251

Closed nyngwang closed 1 year ago

nyngwang commented 1 year ago

Checklist

Neovim Version

NVIM v0.10.0-dev-578+g91aeaeef6
Build type: Release
LuaJIT 2.1.0-beta3

Plugin Version

Nightly (Beta)

Minimal Configuration

use {
  'kylechui/nvim-surround',
  config = function ()
    require('nvim-surround').setup {

    }
  end
}

Sample Buffer

no need

Keystroke Sequence

ciw

Expected behavior

ciw

Actual behavior

icw

Additional context

No response

nyngwang commented 1 year ago

My current workaround is to define ci again using vim.fn.feedkeys:

vim.keymap.set('n', 'ci', function () vim.fn.feedkeys('ci','n') end)
kylechui commented 1 year ago

Have you updated the plugin to the latest version? Can't reproduce on my end. Also probably try it with all other plugins disabled

nyngwang commented 1 year ago

Can't reproduce on my end.

My apologies. It turns out to be another issue as you stated. Let me close this! (always feeling crazy when debugging my dotfiles)