fix(nvim): enable ctrl-w back in smart open

This commit is contained in:
Oliver
2025-08-27 12:09:21 +02:00
parent 724a51a7be
commit 98f8c886d6
3 changed files with 15 additions and 4 deletions

1
.gitignore vendored
View File

@@ -5,5 +5,6 @@ glab-cli/**/mr.json
**/lazy-lock.json
github-copilot/hosts.json
omz-custom/plugins
omz-custom/vrm.sh
omz
testDir

View File

@@ -6,9 +6,5 @@ return {
end,
dependencies = {
"kkharji/sqlite.lua",
-- -- Only required if using match_algorithm fzf
-- { "nvim-telescope/telescope-fzf-native.nvim", build = "make" },
-- -- Optional. If installed, native fzy will be used when match_algorithm is fzy
-- { "nvim-telescope/telescope-fzy-native.nvim" },
},
}

View File

@@ -29,6 +29,20 @@ return {
local telescope = require("telescope")
telescope.setup({
extensions = {
smart_open = {
mappings = {
i = {
-- works around smart_open overriding ctrl-w keybind for deleting
-- word. should be able to remove this once this issue is resolved:
-- https://github.com/danielfalk/smart-open.nvim/issues/71
["<C-w>"] = function()
vim.api.nvim_input("<c-s-w>")
end,
},
},
},
},
defaults = {
buffer_previewer_maker = new_maker,
},