remove mini.files and recover dadbod
This commit is contained in:
parent
3e01fa628c
commit
466d6652ba
5 changed files with 29 additions and 22 deletions
|
|
@ -23,6 +23,9 @@
|
|||
"smart-splits.nvim": { "branch": "master", "commit": "5ef94ca23b28148187846fc46f10184aad4d17b0" },
|
||||
"trouble.nvim": { "branch": "main", "commit": "85bedb7eb7fa331a2ccbecb9202d8abba64d37b3" },
|
||||
"ts-node-action": { "branch": "master", "commit": "bfaa787cc85d753af3c19245b4142ed727a534b5" },
|
||||
"vim-dadbod": { "branch": "master", "commit": "e95afed23712f969f83b4857a24cf9d59114c2e6" },
|
||||
"vim-dadbod-completion": { "branch": "master", "commit": "a8dac0b3cf6132c80dc9b18bef36d4cf7a9e1fe6" },
|
||||
"vim-dadbod-ui": { "branch": "master", "commit": "2900a1617b3df1a48683d872eadbe1101146a49a" },
|
||||
"vim-sleuth": { "branch": "master", "commit": "be69bff86754b1aa5adcbb527d7fcd1635a84080" },
|
||||
"yazi.nvim": { "branch": "main", "commit": "59c22d1a8bcb3d00a7115ef7f2d59b90cf989ab3" }
|
||||
}
|
||||
|
|
|
|||
|
|
@ -37,6 +37,7 @@ return {
|
|||
},
|
||||
sources = {
|
||||
providers = {
|
||||
dadbod = { name = "Dadbod", module = "vim_dadbod_completion.blink" },
|
||||
lazydev = { name = "LazyDev", module = "lazydev.integrations.blink" },
|
||||
luasnip = {
|
||||
name = 'luasnip',
|
||||
|
|
@ -55,6 +56,9 @@ return {
|
|||
"buffer",
|
||||
"lazydev",
|
||||
},
|
||||
per_filetype = {
|
||||
sql = { 'snippets', 'dadbod', 'buffer' },
|
||||
},
|
||||
},
|
||||
}
|
||||
end
|
||||
|
|
|
|||
21
Configs/nvim/.config/nvim/lua/aleidk/plugins/database.lua
Normal file
21
Configs/nvim/.config/nvim/lua/aleidk/plugins/database.lua
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
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",
|
||||
},
|
||||
keys = {
|
||||
{ "<Leader>ud", "<CMD>DBUIToggle<CR>", desc = "Toggle DB UI" },
|
||||
},
|
||||
init = function()
|
||||
-- Your DBUI configuration
|
||||
vim.g.db_ui_use_nerd_fonts = 1
|
||||
vim.g.db_ui_force_echo_notifications = 1
|
||||
end,
|
||||
}
|
||||
|
|
@ -2,7 +2,7 @@ return {
|
|||
"mikavilpas/yazi.nvim",
|
||||
keys = {
|
||||
{
|
||||
"<leader>E",
|
||||
"<leader>e",
|
||||
"<cmd>Yazi<cr>",
|
||||
desc = "Open yazi at the current file",
|
||||
},
|
||||
|
|
|
|||
|
|
@ -53,27 +53,6 @@ return {
|
|||
},
|
||||
})
|
||||
|
||||
require('mini.files').setup({
|
||||
mappings = {
|
||||
go_in = 'L',
|
||||
go_in_plus = 'l',
|
||||
},
|
||||
windows = {
|
||||
preview = true,
|
||||
width_preview = 75,
|
||||
}
|
||||
})
|
||||
vim.keymap.set('n', '<Leader>e', function()
|
||||
local buf_name = vim.api.nvim_buf_get_name(0)
|
||||
if string.match(buf_name, "^ministarter:.*") then
|
||||
MiniFiles.open()
|
||||
else
|
||||
MiniFiles.open(buf_name)
|
||||
end
|
||||
end,
|
||||
{ desc = 'Show at cursor', silent = true })
|
||||
|
||||
|
||||
require('mini.move').setup({
|
||||
mappings = {
|
||||
-- Move visual selection in Visual mode
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue