diff options
author | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2022-10-11 00:25:05 +0200 |
---|---|---|
committer | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2022-10-11 00:25:05 +0200 |
commit | 34d5c56462ddf6aef4c754ba39e650fe540c67c3 (patch) | |
tree | 560211e3de760f5a0c05526be5b2ce2b123e6896 /fnl/config | |
parent | edef92a943e237ca483b43f912cf844653fc49b7 (diff) |
Remap neogit to mmappings
Diffstat (limited to 'fnl/config')
-rw-r--r-- | fnl/config/which-key.fnl | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/fnl/config/which-key.fnl b/fnl/config/which-key.fnl index 48a39be..8e89095 100644 --- a/fnl/config/which-key.fnl +++ b/fnl/config/which-key.fnl @@ -50,9 +50,10 @@ "Harpoon Prev"] :t ["<cmd>Telescope harpoon marks<cr>" "Search Files"] :v ["<cmd>lua vim.lsp.buf.rename()<cr>" :Rename] - :p ["<cmd>SaveSession<cr>" "Save Session"] + :p [:<cmd>SaveSession<cr> "Save Session"] :r ["<cmd>lua require('harpoon.ui').toggle_quick_menu()<cr>" - "Harpoon UI"]}) + "Harpoon UI"] + :n [:<cmd>Neogit<cr> :Neogit]}) (def- nopts {:mode :n :prefix :<leader> @@ -78,8 +79,8 @@ :C ["<cmd>Telescope commands<cr>" :Commands]}) (def- git {:name :Git - :d ["<cmd>DiffviewOpen<cr>" "Diffview"] - :D ["<cmd>DiffviewFileHistory<cr>" "DiffviewFileHistory"] + :d ["<cmd>Gitsigns diffthis HEAD<cr>" :Diff] + :D [:<cmd>DiffviewFileHistory<cr> :DiffviewFileHistory] :j ["<cmd>lua require 'gitsigns'.next_hunk()<cr>" "Next Hunk"] :k ["<cmd>lua require 'gitsigns'.prev_hunk()<cr>" "Prev Hunk"] :l ["<cmd>lua require 'gitsigns'.blame_line()<cr>" :Blame] @@ -92,8 +93,7 @@ :o ["<cmd>Telescope git_status<cr>" "Open changed file"] :b ["<cmd>Telescope git_branches<cr>" "Checkout branch"] :c ["<cmd>Telescope git_commits<cr>" "Checkout commit"] - :d ["<cmd>Gitsigns diffthis HEAD<cr>" :Diff] - :n [:<cmd>Neogit<cr> :Neogit]}) + :d ["<cmd>Gitsigns diffthis HEAD<cr>" :Diff]}) (def- lsp {:name :LSP :a ["<cmd>lua vim.lsp.buf.code_action()<cr>" "Code Action"] |