From b40404f8d441a4b4d3a4e44b93c1d66fae3edf12 Mon Sep 17 00:00:00 2001 From: Tovi Jaeschke-Rogers Date: Fri, 17 May 2024 08:20:45 +0930 Subject: [PATCH] feat: remove comment.lua and add vim-dadbod --- .config/nvim/lua/tovi/plugins/comment.lua | 5 ----- .config/nvim/lua/tovi/plugins/harpoon.lua | 8 ++++---- .config/nvim/lua/tovi/plugins/oil.lua | 18 +++++++++--------- .config/nvim/lua/tovi/plugins/tmux.lua | 4 ++++ .config/nvim/lua/tovi/plugins/vim-dadbod.lua | 20 ++++++++++++++++++++ 5 files changed, 37 insertions(+), 18 deletions(-) delete mode 100644 .config/nvim/lua/tovi/plugins/comment.lua create mode 100644 .config/nvim/lua/tovi/plugins/vim-dadbod.lua diff --git a/.config/nvim/lua/tovi/plugins/comment.lua b/.config/nvim/lua/tovi/plugins/comment.lua deleted file mode 100644 index da8133e..0000000 --- a/.config/nvim/lua/tovi/plugins/comment.lua +++ /dev/null @@ -1,5 +0,0 @@ -return { - "numToStr/Comment.nvim", - event = { "BufReadPre", "BufNewFile" }, - config = true, -} diff --git a/.config/nvim/lua/tovi/plugins/harpoon.lua b/.config/nvim/lua/tovi/plugins/harpoon.lua index 463c908..ba7993a 100644 --- a/.config/nvim/lua/tovi/plugins/harpoon.lua +++ b/.config/nvim/lua/tovi/plugins/harpoon.lua @@ -21,19 +21,19 @@ return { harpoon.ui:toggle_quick_menu(harpoon:list()) end, { desc = "Toggle quick menu for harpoon" }) - keymap.set("n", "", function() + keymap.set("n", "", function() harpoon:list():select(1) end, { desc = "Go to first harpoon file" }) - keymap.set("n", "", function() + keymap.set("n", "", function() harpoon:list():select(2) end, { desc = "Go to second harpoon file" }) - keymap.set("n", "", function() + keymap.set("n", "", function() harpoon:list():select(3) end, { desc = "Go to third harpoon file" }) - keymap.set("n", "", function() + keymap.set("n", "", function() harpoon:list():select(4) end, { desc = "Go to fourth harpoon file" }) end, diff --git a/.config/nvim/lua/tovi/plugins/oil.lua b/.config/nvim/lua/tovi/plugins/oil.lua index 68ee089..e9af7b3 100644 --- a/.config/nvim/lua/tovi/plugins/oil.lua +++ b/.config/nvim/lua/tovi/plugins/oil.lua @@ -6,12 +6,12 @@ return { config = function () require("oil").setup({ default_file_explorer = true, - columns = { - "icon", - "permissions", - "size", - "mtime", - }, + -- columns = { + -- "icon", + -- "permissions", + -- "size", + -- "mtime", + -- }, buf_options = { buflisted = false, bufhidden = "hide", @@ -34,11 +34,11 @@ return { ["g?"] = "actions.show_help", [""] = "actions.select", [""] = "actions.select_vsplit", - [""] = "actions.select_split", + [""] = false, [""] = "actions.select_tab", - [""] = "actions.preview", + [""] = "actions.preview", [""] = "actions.close", - [""] = "actions.refresh", + [""] = false, ["-"] = "actions.parent", ["_"] = "actions.open_cwd", ["`"] = "actions.cd", diff --git a/.config/nvim/lua/tovi/plugins/tmux.lua b/.config/nvim/lua/tovi/plugins/tmux.lua index cea9515..0844590 100644 --- a/.config/nvim/lua/tovi/plugins/tmux.lua +++ b/.config/nvim/lua/tovi/plugins/tmux.lua @@ -5,6 +5,10 @@ return { copy_sync = { enable = false }, + resize = { + -- enables default keybindings (A-hjkl) for normal mode + enable_default_keybindings = false, + }, }) end } diff --git a/.config/nvim/lua/tovi/plugins/vim-dadbod.lua b/.config/nvim/lua/tovi/plugins/vim-dadbod.lua new file mode 100644 index 0000000..533c016 --- /dev/null +++ b/.config/nvim/lua/tovi/plugins/vim-dadbod.lua @@ -0,0 +1,20 @@ +return { + 'kristijanhusak/vim-dadbod-ui', + dependencies = { + { 'tpope/vim-dadbod', lazy = true }, + { 'kristijanhusak/vim-dadbod-completion', ft = { 'sql', 'mysql', 'plsql' }, lazy = true }, + }, + cmd = { + 'DBUI', + 'DBUIToggle', + 'DBUIAddConnection', + 'DBUIFindBuffer', + }, + init = function() + -- Your DBUI configuration + vim.g.db_ui_use_nerd_fonts = 1 + + -- vim.g.dbs = { + -- } + end, +}