Support ctrl-w in the Snacks input #376
-
Hi, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
This is what worked for me input = {
win = {
keys = {
i_del_word = { "<C-w>", "delete_word", mode = "i" },
},
actions = {
delete_word = function()
return "<cmd>normal! diw<cr><right>"
end,
},
},
}, |
Beta Was this translation helpful? Give feedback.
-
In case someone else arrives here with the same request and the proposed solution doesn't work, here is what worked for me: input = {
enabled = true,
win = {
border = "single",
-- https://github.com/folke/snacks.nvim/discussions/376
keys = {
i_del_word = { "<C-w>", "delete_word", mode = "i" },
},
actions = {
delete_word = function()
vim.cmd("normal! diw<cr>")
end,
},
},
}, |
Beta Was this translation helpful? Give feedback.
This is what worked for me