fix(nvim): enable ctrl-w back in smart open
This commit is contained in:
		| @@ -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" }, | ||||
| 	}, | ||||
| } | ||||
|   | ||||
| @@ -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, | ||||
| 			}, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Oliver
					Oliver