From 842489a986be9c6ae257454dae33fb32eb0236bd Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Wed, 2 Mar 2022 20:24:16 +0100 Subject: [PATCH] home: vim: use 'unimpaired' mappings for quickfix --- home/vim/after/plugin/mappings/qf.vim | 13 ------------- home/vim/after/plugin/mappings/unimpaired.vim | 6 ++++++ 2 files changed, 6 insertions(+), 13 deletions(-) delete mode 100644 home/vim/after/plugin/mappings/qf.vim diff --git a/home/vim/after/plugin/mappings/qf.vim b/home/vim/after/plugin/mappings/qf.vim deleted file mode 100644 index e2eb8a7..0000000 --- a/home/vim/after/plugin/mappings/qf.vim +++ /dev/null @@ -1,13 +0,0 @@ -lua << EOF -local wk = require("which-key") - -local keys = { - ["t"] = { - name = "Toggle", - f = { "(qf_qf_toggle)", "Toggle quickfix list" }, - l = { "(qf_loc_toggle)", "Toggle location list" }, - }, -} - -wk.register(keys, { prefix = "" }) -EOF diff --git a/home/vim/after/plugin/mappings/unimpaired.vim b/home/vim/after/plugin/mappings/unimpaired.vim index 884e56c..c4bb35b 100644 --- a/home/vim/after/plugin/mappings/unimpaired.vim +++ b/home/vim/after/plugin/mappings/unimpaired.vim @@ -70,6 +70,8 @@ local keys = { b = "Light background", c = "Cursor line", d = "Diff", + e = { "lwindow", "Location list" }, + f = { "cwindow", "Quickfix list" }, h = "Search high-lighting", i = "Case insensitive search", l = "List mode", @@ -86,6 +88,8 @@ local keys = { b = "Light background", c = "Cursor line", d = "Diff", + e = { "lclose", "Location list" }, + f = { "cclose", "Quickfix list" }, h = "Search high-lighting", i = "Case insensitive search", l = "List mode", @@ -102,6 +106,8 @@ local keys = { b = "Light background", c = "Cursor line", d = "Diff", + e = { "(qf_loc_toggle)", "Location list" }, + f = { "(qf_qf_toggle)", "Quickfix list" }, h = "Search high-lighting", i = "Case insensitive search", l = "List mode",