summaryrefslogtreecommitdiff
path: root/fnl
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2023-09-24 00:49:12 +0200
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2023-09-24 00:49:12 +0200
commitfd69ec549594d53b9503212d93a9a44f10eef478 (patch)
tree7202cc68421238518d960cc20761ae0d33410036 /fnl
parentc7171616d3e76700f68f72363020866faef0ff52 (diff)
Add init fun to dadbod
Diffstat (limited to 'fnl')
-rw-r--r--fnl/plugins/editor/dadbod.fnl11
1 files changed, 6 insertions, 5 deletions
diff --git a/fnl/plugins/editor/dadbod.fnl b/fnl/plugins/editor/dadbod.fnl
index 016b9ce..40220ec 100644
--- a/fnl/plugins/editor/dadbod.fnl
+++ b/fnl/plugins/editor/dadbod.fnl
@@ -9,6 +9,11 @@
: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 [{1 :tpope/vim-dadbod :lazy true}
{1 :tpope/vim-dotenv :lazy true}
@@ -16,8 +21,4 @@
:ft [:sql :plsql]
:lazy true}]
: keys
- ; :event :VeryLazy
- :init (fn []
- (set vim.g.db_ui_use_nerd_fonts 1)
- (set vim.g.db_ui_winwidth 40)
- (set vim.g.db_ui_notification_width 39))}
+ : init}