summaryrefslogtreecommitdiff
path: root/lua/nv-dadbod/init.lua
diff options
context:
space:
mode:
authorBiser Stoilov <[email protected]>2021-03-30 22:15:38 +0300
committerGitHub <[email protected]>2021-03-30 15:15:38 -0400
commit3bc4bb61039df5909986f0b30bb0638c252859c3 (patch)
tree32edceb3b39ab1302fc24f3f803bdfdc64a71265 /lua/nv-dadbod/init.lua
parentc81abf2262524145f7ce0d46a347a7c5b09de4e4 (diff)
Database support (#197)
Diffstat (limited to 'lua/nv-dadbod/init.lua')
-rw-r--r--lua/nv-dadbod/init.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/lua/nv-dadbod/init.lua b/lua/nv-dadbod/init.lua
new file mode 100644
index 00000000..be086679
--- /dev/null
+++ b/lua/nv-dadbod/init.lua
@@ -0,0 +1,6 @@
+vim.api.nvim_set_keymap("n", "<leader>Du", ":DBUIToggle<CR>", {noremap=true, silent = true})
+vim.api.nvim_set_keymap("n", "<leader>Df", ":DBUIFindBuffer<CR>", {noremap=true, silent = true})
+vim.api.nvim_set_keymap("n", "<leader>Dr", ":DBUIRenameBuffer<CR>", {noremap=true, silent = true})
+vim.api.nvim_set_keymap("n", "<leader>Dl", ":DBUILastQueryInfo<CR>", {noremap=true, silent = true})
+vim.g.db_ui_save_location = O.db_ui_save_location
+vim.g.db_ui_auto_execute_table_helpers = 1 \ No newline at end of file