summaryrefslogtreecommitdiff
path: root/fnl/plugins/dadbod.fnl
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2024-01-05 01:50:20 +0100
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2024-01-05 01:50:20 +0100
commit2a94573f54c69a9af7536586ab2c03eb88bda5e7 (patch)
tree48e430773d56baef8c751fb8a6b4d76303b61636 /fnl/plugins/dadbod.fnl
parent16198ca3bcd0ddd61f8d18280769c6f226b2b7ce (diff)
Refactor
Diffstat (limited to 'fnl/plugins/dadbod.fnl')
-rw-r--r--fnl/plugins/dadbod.fnl23
1 files changed, 23 insertions, 0 deletions
diff --git a/fnl/plugins/dadbod.fnl b/fnl/plugins/dadbod.fnl
new file mode 100644
index 0000000..c5ca5ec
--- /dev/null
+++ b/fnl/plugins/dadbod.fnl
@@ -0,0 +1,23 @@
+;; Plugins for interacting with databases.
+
+(local dependencies [{1 :tpope/vim-dadbod :lazy true}
+ {1 :tpope/vim-dotenv :lazy true}
+ {1 :kristijanhusak/vim-dadbod-completion
+ :ft [:sql :plsql]
+ :lazy true}])
+
+(local keys [{1 :<leader>dn
+ 2 :<cmd>DBUIToggle<cr>
+ :mode :n
+ :desc "Toggle Dadbod UI"}
+ {1 :<leader>de
+ 2 :<cmd>DBUIAddConnection<cr>
+ :mode :n
+ :desc "Add DB connection"}])
+
+(fn init []
+ (set vim.g.db_ui_use_nerd_fonts 1)
+ (set vim.g.db_ui_winwidth 40)
+ (set vim.g.db_ui_notification_width 39))
+
+{1 :kristijanhusak/vim-dadbod-ui : dependencies : keys : init}