Browse Source

feat: remove dadbod and add alpha for dashboard

master
Tovi Jaeschke-Rogers 1 week ago
parent
commit
71ab301176
4 changed files with 83 additions and 71 deletions
  1. +38
    -0
      .config/nvim/lua/plugins/alpha.lua
  2. +0
    -3
      .config/nvim/lua/plugins/nvim-cmp.lua
  3. +45
    -45
      .config/nvim/lua/plugins/trouble.lua
  4. +0
    -23
      .config/nvim/lua/plugins/vim-dadbod.lua

+ 38
- 0
.config/nvim/lua/plugins/alpha.lua View File

@ -0,0 +1,38 @@
return {
'goolord/alpha-nvim',
dependencies = {
'echasnovski/mini.icons',
{
"MaximilianLloyd/ascii.nvim",
dependencies = {
"MunifTanjim/nui.nvim"
},
},
},
config = function ()
local alpha = require("alpha")
local dashboard = require("alpha.themes.dashboard")
-- Set the ASCII art
dashboard.section.header.val = require("ascii").art.text.neovim.lean
-- Remove other sections (buttons, footer, etc.) to show only the ASCII art
dashboard.section.buttons.val = {}
dashboard.section.footer.val = {}
local function get_center_padding()
local total_lines = vim.fn.winheight(0)
local art_lines = #dashboard.section.header.val
return math.floor((total_lines - art_lines) / 2)
end
-- Center the header
dashboard.opts.layout = {
{ type = "padding", val = get_center_padding() }, -- Add some vertical padding
dashboard.section.header,
}
-- Set up alpha with the modified dashboard
alpha.setup(dashboard.opts)
end
}

+ 0
- 3
.config/nvim/lua/plugins/nvim-cmp.lua View File

@ -22,7 +22,6 @@ return {
"saadparwaiz1/cmp_luasnip", "saadparwaiz1/cmp_luasnip",
"onsails/lspkind.nvim", "onsails/lspkind.nvim",
"kristijanhusak/vim-dadbod-completion",
"hrsh7th/cmp-nvim-lsp", "hrsh7th/cmp-nvim-lsp",
"hrsh7th/cmp-buffer", "hrsh7th/cmp-buffer",
@ -69,7 +68,6 @@ return {
{ name = "luasnip" }, { name = "luasnip" },
{ name = "buffer" }, { name = "buffer" },
{ name = "path" }, { name = "path" },
{ name = "vim-dadbod-completion" },
{ name = "go_pkgs" }, { name = "go_pkgs" },
}, },
matching = { matching = {
@ -90,7 +88,6 @@ return {
nvim_lua = "[API]", nvim_lua = "[API]",
nvim_lsp = "[LSP]", nvim_lsp = "[LSP]",
luasnip = "[SNIP]", luasnip = "[SNIP]",
vim_dadbod_completion = "[DBUI]",
path = "[PATH]", path = "[PATH]",
buffer = "[BUFF]", buffer = "[BUFF]",
go_pkgs = "[PKGS]", go_pkgs = "[PKGS]",


+ 45
- 45
.config/nvim/lua/plugins/trouble.lua View File

@ -1,47 +1,47 @@
return { return {
"folke/trouble.nvim",
opts = {},
cmd = "Trouble",
keys = {
{
"<leader>xx",
"<cmd>Trouble diagnostics toggle<cr>",
desc = "Diagnostics (Trouble)",
},
{
"<leader>xX",
"<cmd>Trouble diagnostics toggle filter.buf=0<cr>",
desc = "Buffer Diagnostics (Trouble)",
},
{
"<leader>xj",
"<cmd>Trouble diagnostics next<cr>",
desc = "Diagnostics Next (Trouble)",
},
{
"<leader>xk",
"<cmd>Trouble diagnostics prev<cr>",
desc = "Diagnostics Previous (Trouble)",
},
{
"<leader>cs",
"<cmd>Trouble symbols toggle focus=false<cr>",
desc = "Symbols (Trouble)",
},
{
"<leader>cl",
"<cmd>Trouble lsp toggle focus=false win.position=right<cr>",
desc = "LSP Definitions / references / ... (Trouble)",
},
{
"<leader>xL",
"<cmd>Trouble loclist toggle<cr>",
desc = "Location List (Trouble)",
},
{
"<leader>xQ",
"<cmd>Trouble qflist toggle<cr>",
desc = "Quickfix List (Trouble)",
},
},
"folke/trouble.nvim",
opts = {},
cmd = "Trouble",
keys = {
{
"<leader>xx",
"<cmd>Trouble diagnostics toggle<cr>",
desc = "Diagnostics (Trouble)",
},
{
"<leader>xX",
"<cmd>Trouble diagnostics toggle filter.buf=0<cr>",
desc = "Buffer Diagnostics (Trouble)",
},
{
"<leader>xj",
"<cmd>Trouble diagnostics next<cr>",
desc = "Diagnostics Next (Trouble)",
},
{
"<leader>xk",
"<cmd>Trouble diagnostics prev<cr>",
desc = "Diagnostics Previous (Trouble)",
},
{
"<leader>cs",
"<cmd>Trouble symbols toggle focus=false<cr>",
desc = "Symbols (Trouble)",
},
{
"<leader>cl",
"<cmd>Trouble lsp toggle focus=false win.position=right<cr>",
desc = "LSP Definitions / references / ... (Trouble)",
},
{
"<leader>xL",
"<cmd>Trouble loclist toggle<cr>",
desc = "Location List (Trouble)",
},
{
"<leader>xQ",
"<cmd>Trouble qflist toggle<cr>",
desc = "Quickfix List (Trouble)",
},
},
} }

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

@ -1,23 +0,0 @@
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()
vim.g.db_ui_use_nerd_fonts = 1
end,
}

Loading…
Cancel
Save