summaryrefslogtreecommitdiff
path: root/fnl
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2022-10-16 01:54:52 +0200
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2022-10-16 01:54:52 +0200
commitf3cb0e4fe65516137e84d6ccc54807cb96e6ef28 (patch)
tree606819c6780bf76ab4f10ad652b6891db367a424 /fnl
parentbcfd80e6b7d89022497ebdde80321920978d5811 (diff)
Update diff keymaps
Diffstat (limited to 'fnl')
-rw-r--r--fnl/config/which-key.fnl11
1 files changed, 4 insertions, 7 deletions
diff --git a/fnl/config/which-key.fnl b/fnl/config/which-key.fnl
index 759166c..2fa2d5b 100644
--- a/fnl/config/which-key.fnl
+++ b/fnl/config/which-key.fnl
@@ -35,17 +35,14 @@
:noremap true
:nowait true})
-(def- diff {:name :Diff
- :m ["<cmd>Gitsigns diffthis HEAD<cr>" "Gitsigns diff"]
- :n [:<cmd>DiffviewFileHistory<cr> :DiffviewFileHistory]
- :e ["<cmd>DiffviewOpen -uno<cr>" :DiffviewOpen]
- :i [:<cmd>DiffviewClose<cr> :DiffviewClose]})
-
(def- mmappings {:a ["<cmd>lua require('harpoon.mark').add_file()<cr>"
:Harpoon]
:b ["<cmd>lua require('telescope.builtin').buffers(require('telescope.themes').get_dropdown{sort_lastused = true, initial_mode = 'normal', previewer = false})<cr>"
"Switch buffers"]
- :d diff
+ :c [:<cmd>DiffviewClose<cr> :DiffviewClose]
+ :d [:<cmd>DiffviewFileHistory<cr> :DiffviewFileHistory]
+ :x ["<cmd>DiffviewOpen -uno<cr>" :DiffviewOpen]
+ :q ["<cmd>Gitsigns diffthis HEAD<cr>" "Gitsigns diff"]
:f ["<cmd>lua require('telescope.builtin').find_files(require('telescope.themes').get_dropdown{previewer = false})<cr>"
"Find files"]
:g ["<cmd>Telescope live_grep theme=ivy<cr>" "Find text"]