From fd69ec549594d53b9503212d93a9a44f10eef478 Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Sun, 24 Sep 2023 00:49:12 +0200 Subject: Add init fun to dadbod --- fnl/plugins/editor/dadbod.fnl | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'fnl') 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} -- cgit v1.2.3-70-g09d2