summaryrefslogtreecommitdiff
path: root/fnl/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'fnl/plugins')
-rw-r--r--fnl/plugins/cmp.fnl7
-rw-r--r--fnl/plugins/dadbod.fnl4
-rw-r--r--fnl/plugins/diffview.fnl14
-rw-r--r--fnl/plugins/which-key.fnl4
4 files changed, 16 insertions, 13 deletions
diff --git a/fnl/plugins/cmp.fnl b/fnl/plugins/cmp.fnl
index 2723f87..1eb2e9e 100644
--- a/fnl/plugins/cmp.fnl
+++ b/fnl/plugins/cmp.fnl
@@ -13,10 +13,13 @@
:fallbacks [:snippets
:luasnip
:buffer]
- :score_offset 96}
+ :score_offset 3}
+ :snippets {:name :Snippets
+ :module :blink.cmp.sources.snippets
+ :score_offset 4}
:dadbod {:name :Dadbod
:module :vim_dadbod_completion.blink
- :score_offset 88}}}
+ :score_offset 2}}}
:snippets {:preset :luasnip
:expand (λ [snippet]
(let [luasnip (require :luasnip)]
diff --git a/fnl/plugins/dadbod.fnl b/fnl/plugins/dadbod.fnl
index 733a4a0..d973ff2 100644
--- a/fnl/plugins/dadbod.fnl
+++ b/fnl/plugins/dadbod.fnl
@@ -6,11 +6,11 @@
:ft [:sql :plsql]
:lazy true}])
-(local keys [{1 :<leader>dn
+(local keys [{1 :<leader>in
2 :<cmd>DBUIToggle<cr>
:mode :n
:desc "Toggle Dadbod UI"}
- {1 :<leader>de
+ {1 :<leader>ie
2 :<cmd>DBUIAddConnection<cr>
:mode :n
:desc "Add DB connection"}])
diff --git a/fnl/plugins/diffview.fnl b/fnl/plugins/diffview.fnl
index f041ab6..33fd763 100644
--- a/fnl/plugins/diffview.fnl
+++ b/fnl/plugins/diffview.fnl
@@ -1,25 +1,25 @@
;; Inspect commits.
(local keys
- [{1 :<leader>is
+ [{1 :<leader>dh
2 :<cmd>DiffviewFileHistory<cr>
:desc "Repository history"
:nowait true}
- {1 :<leader>it
+ {1 :<leader>df
2 "<cmd>DiffviewFileHistory --follow %<cr>"
:desc "File history"}
- {1 :<leader>ir 2 :<cmd>DiffviewOpen<cr> :desc :Diffview}
- {1 :<leader>ia
+ {1 :<leader>do 2 :<cmd>DiffviewOpen<cr> :desc :Diffview}
+ {1 :<leader>dm
2 "<cmd>DiffviewOpen master<cr>"
:desc "Diffview with master"}
- {1 :<leader>if
+ {1 :<leader>dl
2 "<cmd>.DiffviewFileHistory --follow<cr>"
:desc "Line history"}
- {1 :<leader>ip
+ {1 :<leader>dv
2 "<esc><cmd>'<,'>DiffviewFileHistory --follow<CR>"
:desc "Range history"
:mode :v}
- {1 :<leader>ic 2 :<cmd>DiffviewClose<cr> :desc "Close diffview"}])
+ {1 :<leader>dc 2 :<cmd>DiffviewClose<cr> :desc "Close diffview"}])
{1 :sindrets/diffview.nvim
:cmd [:DiffviewFileHistory :DiffviewOpen]
diff --git a/fnl/plugins/which-key.fnl b/fnl/plugins/which-key.fnl
index c37d47b..c32613c 100644
--- a/fnl/plugins/which-key.fnl
+++ b/fnl/plugins/which-key.fnl
@@ -38,10 +38,10 @@
:disable {:filetypes [:netrw]}})
(local groups [{:mode [:n :v]
- 1 {1 :<leader>d :group :+db}
+ 1 {1 :<leader>d :group :+diff}
2 {1 :<leader>f :group :+find}
3 {1 :<leader>g :group :+git}
- 4 {1 :<leader>i :group :+diffview}
+ 4 {1 :<leader>i :group :+db}
5 {1 :<leader>j :group :+diagnostics}
6 {1 :<leader>l :group :+lsp}
7 {1 :<leader>o :group :+orgmode}