From 1d23be1165c373a6026e42f3b3a5100126eaf81d Mon Sep 17 00:00:00 2001 From: zztrieuzz Date: Tue, 19 Mar 2024 06:21:24 +0700 Subject: [PATCH] map ctrl+c to esc fix #209 --- lua/spectre/init.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/lua/spectre/init.lua b/lua/spectre/init.lua index 0383e0f..f3b1586 100644 --- a/lua/spectre/init.lua +++ b/lua/spectre/init.lua @@ -188,6 +188,7 @@ function M.mapping_buffer(bufnr) api.nvim_buf_set_keymap(bufnr, 'v', 'p', "plua require('spectre').on_search_change()", map_opt) api.nvim_buf_set_keymap(bufnr, 'v', 'P', "Plua require('spectre').on_search_change()", map_opt) api.nvim_buf_set_keymap(bufnr, 'n', 'd', '', map_opt) + api.nvim_buf_set_keymap(bufnr, 'i', '', '', map_opt) api.nvim_buf_set_keymap(bufnr, 'v', 'd', 'lua require("spectre").toggle_checked()', map_opt) api.nvim_buf_set_keymap(bufnr, 'n', 'o', 'ji', map_opt) -- don't append line on can make the UI wrong api.nvim_buf_set_keymap(bufnr, 'n', 'O', 'ki', map_opt)