summaryrefslogtreecommitdiff
path: root/fnl/config
diff options
context:
space:
mode:
Diffstat (limited to 'fnl/config')
-rw-r--r--fnl/config/diffview.fnl6
-rw-r--r--fnl/config/init.fnl1
-rw-r--r--fnl/config/which-key.fnl2
3 files changed, 9 insertions, 0 deletions
diff --git a/fnl/config/diffview.fnl b/fnl/config/diffview.fnl
new file mode 100644
index 0000000..eea5ed3
--- /dev/null
+++ b/fnl/config/diffview.fnl
@@ -0,0 +1,6 @@
+;; Trim whitespaces on save.
+(module config.diffview {autoload {: util}})
+
+(def- opts {})
+
+(util.use-config :diffview opts)
diff --git a/fnl/config/init.fnl b/fnl/config/init.fnl
index b350dfa..b752361 100644
--- a/fnl/config/init.fnl
+++ b/fnl/config/init.fnl
@@ -9,6 +9,7 @@
config.colorizer
config.colorscheme
config.comment
+ config.diffview
config.fidget
config.gitsigns
config.harpoon
diff --git a/fnl/config/which-key.fnl b/fnl/config/which-key.fnl
index 0c8ee7e..1d196fa 100644
--- a/fnl/config/which-key.fnl
+++ b/fnl/config/which-key.fnl
@@ -78,6 +78,8 @@
:C ["<cmd>Telescope commands<cr>" :Commands]})
(def- git {:name :Git
+ :d ["<cmd>DiffviewOpen<cr>" "Diffview"]
+ :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]