kylechui / nvim-surround

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

Surround commands not triggered #193

Closed rcclemente closed 1 year ago

rcclemente commented 1 year ago

Checklist

Neovim Version

v0.8.1

Plugin Version

Tagged (Stable)

Minimal Configuration

use({ "kylechui/nvim-surround", tag = "*", -- Use for stability; omit to use main branch for the latest features config = function() require("nvim-surround").setup({ -- Configuration here, or leave empty to use defaults }) end })

Sample Buffer

require "user.keymaps"

Keystroke Sequence

cs"'

Expected behavior

expect double qoutes to replace single quote

Actual behavior

When pressing the sequence cs"' i noticed the after pressing the letter s the command disappears in the right corner and nothing is triggered

Additional context

No response

kylechui commented 1 year ago

Are you sure that the plugin has been properly installed via PackerSync or PackerInstall? What is the output of :lua =pcall(require, "nvim-surround")?

rcclemente commented 1 year ago

Screen Shot 2023-01-02 at 10 45 57 AM

HI @kylechui above is the screenshot from the output

kylechui commented 1 year ago

Hmm... that is quite strange as you are using the tagged version. I would either try removing then reinstalling the plugin, or do the following:

  1. Start Neovim without any configuration using nvim -u NONE
  2. Setup nvim-surround via :lua require("nvim-surround").setup()
  3. Retry cs"' on the buffer of your choice

If neither of the above work, please do steps 1 and 2, then send the output of :verbose nmap cs.

rcclemente commented 1 year ago

@kylechui thanks i found the problem in my root config... This is working great now