remove mini.files and recover dadbod
This commit is contained in:
parent
3e01fa628c
commit
689262ef9b
4 changed files with 26 additions and 22 deletions
|
|
@ -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