summaryrefslogtreecommitdiff
path: root/fnl/plugins/editor
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2023-09-22 23:57:25 +0200
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2023-09-22 23:57:25 +0200
commitdb5bc4eacc3f8283b9de42df688dc12149358d96 (patch)
treeedab40058dca3a60cb3f9de9d46eaa81189f64df /fnl/plugins/editor
parentdeec93dea6cce47348e61d80cd504d09441dc79e (diff)
Fix dadbod and worktree keys
Diffstat (limited to 'fnl/plugins/editor')
-rw-r--r--fnl/plugins/editor/dadbod.fnl4
-rw-r--r--fnl/plugins/editor/git-worktree.fnl4
-rw-r--r--fnl/plugins/editor/which-key.fnl5
3 files changed, 8 insertions, 5 deletions
diff --git a/fnl/plugins/editor/dadbod.fnl b/fnl/plugins/editor/dadbod.fnl
index cc6fa64..016b9ce 100644
--- a/fnl/plugins/editor/dadbod.fnl
+++ b/fnl/plugins/editor/dadbod.fnl
@@ -1,10 +1,10 @@
;; Plugins for interacting with databases.
-(local keys [{1 :<leader>wn
+(local keys [{1 :<leader>dn
2 :<cmd>DBUIToggle<cr>
:mode :n
:desc "Toggle Dadbod UI"}
- {1 :<leader>we
+ {1 :<leader>de
2 :<cmd>DBUIAddConnection<cr>
:mode :n
:desc "Add DB connection"}])
diff --git a/fnl/plugins/editor/git-worktree.fnl b/fnl/plugins/editor/git-worktree.fnl
index ec57195..8812859 100644
--- a/fnl/plugins/editor/git-worktree.fnl
+++ b/fnl/plugins/editor/git-worktree.fnl
@@ -1,10 +1,10 @@
;; Plugins for working with git-worktrees.
-(local keys [{1 :<leader>ge
+(local keys [{1 :<leader>wn
2 "<cmd>lua require('telescope').extensions.git_worktree.git_worktrees()<cr>"
:mode :n
:desc "Switch between worktrees"}
- {1 :<leader>gi
+ {1 :<leader>we
2 "<cmd>lua require('telescope').extensions.git_worktree.create_git_worktree()<cr>"
:mode :n
:desc "Create a worktree"}])
diff --git a/fnl/plugins/editor/which-key.fnl b/fnl/plugins/editor/which-key.fnl
index 00fea1c..84197d7 100644
--- a/fnl/plugins/editor/which-key.fnl
+++ b/fnl/plugins/editor/which-key.fnl
@@ -28,14 +28,17 @@
:triggers_blacklist {:i [:j :k] :v [:j :k]}})
(local groups {:mode [:n :v]
+ :<leader>d {:name :+db}
:<leader>f {:name :+find}
:<leader>g {:name :+git}
+ :<leader>i {:name :+diffview}
:<leader>j {:name :+diagnostics}
:<leader>l {:name :+lsp}
:<leader>o {:name :+orgmode}
:<leader>r {:name :+replace}
:<leader>s {:name :+session}
- :<leader>w {:name :+db}})
+ :<leader>w {:name :+worktree}
+ })
(fn setup []
(let [which-key (require :which-key)]