kylechui / nvim-surround

Add/change/delete surrounding delimiter pairs with ease. Written with :heart: in Lua.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

nyngwang opened this issue · comments

Checklist

  • Have you tried updating the plugin to the latest version?
  • Have you checked the Breaking Changes issue?
  • Have you read through :h nvim-surround to see if there might be any relevant information there?

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

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

vim.keymap.set('n', 'ci', function () vim.fn.feedkeys('ci','n') end)

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

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)