summaryrefslogtreecommitdiff
path: root/fnl/plugins/editor
diff options
context:
space:
mode:
Diffstat (limited to 'fnl/plugins/editor')
-rw-r--r--fnl/plugins/editor/diffview.fnl6
-rw-r--r--fnl/plugins/editor/gitsigns.fnl6
-rw-r--r--fnl/plugins/editor/neogit.fnl2
3 files changed, 5 insertions, 9 deletions
diff --git a/fnl/plugins/editor/diffview.fnl b/fnl/plugins/editor/diffview.fnl
index c004199..9b49990 100644
--- a/fnl/plugins/editor/diffview.fnl
+++ b/fnl/plugins/editor/diffview.fnl
@@ -3,6 +3,6 @@
{1 :sindrets/diffview.nvim
:cmd [:DiffviewFileHistory :DiffviewOpen]
:config true
- :keys [{1 :md 2 :<cmd>DiffviewFileHistory<cr> :desc :DiffviewFileHistory}
- {1 :mx 2 "<cmd>DiffviewOpen -uno<cr>" :desc :DiffviewOpen}
- {1 :mz 2 :<cmd>DiffviewClose<cr> :desc :DiffviewClose}]}
+ :keys [{1 :<leader>gh 2 :<cmd>DiffviewFileHistory<cr> :desc :DiffviewFileHistory}
+ {1 :<leader>go 2 "<cmd>DiffviewOpen -uno<cr>" :desc :DiffviewOpen}
+ {1 :<leader>ga 2 :<cmd>DiffviewClose<cr> :desc :DiffviewClose}]}
diff --git a/fnl/plugins/editor/gitsigns.fnl b/fnl/plugins/editor/gitsigns.fnl
index a89956a..8150f98 100644
--- a/fnl/plugins/editor/gitsigns.fnl
+++ b/fnl/plugins/editor/gitsigns.fnl
@@ -1,10 +1,6 @@
;; Add git signs to source files.
-(local keys [{1 :mq
- 2 "<cmd>Gitsigns diffthis HEAD<cr>"
- :mode :n
- :desc "Gitsigns diff"}
- {1 :<leader>gR
+(local keys [{1 :<leader>gR
2 "<cmd>lua require 'gitsigns'.reset_buffer()<cr>"
:mode :n
:desc "Reset Buffer"}
diff --git a/fnl/plugins/editor/neogit.fnl b/fnl/plugins/editor/neogit.fnl
index e9c6235..f19c784 100644
--- a/fnl/plugins/editor/neogit.fnl
+++ b/fnl/plugins/editor/neogit.fnl
@@ -4,4 +4,4 @@
:cmd :Neogit
:config true
:dependencies [:nvim-lua/plenary.nvim]
- :keys [{1 :mn 2 :<cmd>Neogit<cr> :desc :Neogit}]}
+ :keys [{1 :<leader>gm 2 :<cmd>Neogit<cr> :desc :Neogit}]}