fix(nvim): enable ctrl-w back in smart open
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -5,5 +5,6 @@ glab-cli/**/mr.json
|
|||||||
**/lazy-lock.json
|
**/lazy-lock.json
|
||||||
github-copilot/hosts.json
|
github-copilot/hosts.json
|
||||||
omz-custom/plugins
|
omz-custom/plugins
|
||||||
|
omz-custom/vrm.sh
|
||||||
omz
|
omz
|
||||||
testDir
|
testDir
|
||||||
|
|||||||
@@ -6,9 +6,5 @@ return {
|
|||||||
end,
|
end,
|
||||||
dependencies = {
|
dependencies = {
|
||||||
"kkharji/sqlite.lua",
|
"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" },
|
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -29,6 +29,20 @@ return {
|
|||||||
local telescope = require("telescope")
|
local telescope = require("telescope")
|
||||||
|
|
||||||
telescope.setup({
|
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 = {
|
defaults = {
|
||||||
buffer_previewer_maker = new_maker,
|
buffer_previewer_maker = new_maker,
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user