kylechui / nvim-surround

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

Option to disable "Invalid Character!" red message #118

Closed ziontee113 closed 2 years ago

ziontee113 commented 2 years ago

Checklist

Is your feature request related to a problem? Please describe. The "Invalid Character!" red message is very aggressive. I'd like to turn it off, or replace it with a simple print() statement.

Describe the solution you'd like An option to disable / change that message.

Additional context I tried this code and it didn't work, what am I doing wrong?

require("nvim-surround").setup({
    delimeters = {
        invalid_key_behavior = function() print("ok cool") end,
    },
})

Thank you very much.

kylechui commented 2 years ago

It appears you have spelled "delimiters" wrong.

ziontee113 commented 2 years ago

Thank you very much :) Silly me :joy: