Browse Source

feat: remove comment.lua and add vim-dadbod

master
Tovi Jaeschke-Rogers 7 months ago
parent
commit
b40404f8d4
5 changed files with 37 additions and 18 deletions
  1. +0
    -5
      .config/nvim/lua/tovi/plugins/comment.lua
  2. +4
    -4
      .config/nvim/lua/tovi/plugins/harpoon.lua
  3. +9
    -9
      .config/nvim/lua/tovi/plugins/oil.lua
  4. +4
    -0
      .config/nvim/lua/tovi/plugins/tmux.lua
  5. +20
    -0
      .config/nvim/lua/tovi/plugins/vim-dadbod.lua

+ 0
- 5
.config/nvim/lua/tovi/plugins/comment.lua View File

@ -1,5 +0,0 @@
return {
"numToStr/Comment.nvim",
event = { "BufReadPre", "BufNewFile" },
config = true,
}

+ 4
- 4
.config/nvim/lua/tovi/plugins/harpoon.lua View File

@ -21,19 +21,19 @@ return {
harpoon.ui:toggle_quick_menu(harpoon:list())
end, { desc = "Toggle quick menu for harpoon" })
keymap.set("n", "<C-S-h>", function()
keymap.set("n", "<A-h>", function()
harpoon:list():select(1)
end, { desc = "Go to first harpoon file" })
keymap.set("n", "<C-S-j>", function()
keymap.set("n", "<A-j>", function()
harpoon:list():select(2)
end, { desc = "Go to second harpoon file" })
keymap.set("n", "<C-S-k>", function()
keymap.set("n", "<A-k>", function()
harpoon:list():select(3)
end, { desc = "Go to third harpoon file" })
keymap.set("n", "<C-S-l>", function()
keymap.set("n", "<A-l>", function()
harpoon:list():select(4)
end, { desc = "Go to fourth harpoon file" })
end,


+ 9
- 9
.config/nvim/lua/tovi/plugins/oil.lua View File

@ -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",
["<CR>"] = "actions.select",
["<C-s>"] = "actions.select_vsplit",
["<C-h>"] = "actions.select_split",
["<C-h>"] = false,
["<C-t>"] = "actions.select_tab",
["<C-a>"] = "actions.preview",
["<C-v>"] = "actions.preview",
["<C-c>"] = "actions.close",
["<C-l>"] = "actions.refresh",
["<C-l>"] = false,
["-"] = "actions.parent",
["_"] = "actions.open_cwd",
["`"] = "actions.cd",


+ 4
- 0
.config/nvim/lua/tovi/plugins/tmux.lua View File

@ -5,6 +5,10 @@ return {
copy_sync = {
enable = false
},
resize = {
-- enables default keybindings (A-hjkl) for normal mode
enable_default_keybindings = false,
},
})
end
}

+ 20
- 0
.config/nvim/lua/tovi/plugins/vim-dadbod.lua View File

@ -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,
}

Loading…
Cancel
Save