summaryrefslogtreecommitdiff
path: root/fnl/plugins/editor/dadbod.fnl
blob: cc6fa6423d04d7e2a64a1dd6fa43d668e8fa9dc1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
;; Plugins for interacting with databases.

(local keys [{1 :<leader>wn
              2 :<cmd>DBUIToggle<cr>
              :mode :n
              :desc "Toggle Dadbod UI"}
             {1 :<leader>we
              2 :<cmd>DBUIAddConnection<cr>
              :mode :n
              :desc "Add DB connection"}])

{1 :kristijanhusak/vim-dadbod-ui
 :dependencies [{1 :tpope/vim-dadbod :lazy true}
                {1 :tpope/vim-dotenv :lazy true}
                {1 :kristijanhusak/vim-dadbod-completion
                 :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))}