diff --git a/.config/nvim/lua/plugins/alpha.lua b/.config/nvim/lua/plugins/alpha.lua new file mode 100644 index 0000000..cb43b79 --- /dev/null +++ b/.config/nvim/lua/plugins/alpha.lua @@ -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 +} diff --git a/.config/nvim/lua/plugins/nvim-cmp.lua b/.config/nvim/lua/plugins/nvim-cmp.lua index 3086111..76b2b10 100644 --- a/.config/nvim/lua/plugins/nvim-cmp.lua +++ b/.config/nvim/lua/plugins/nvim-cmp.lua @@ -22,7 +22,6 @@ return { "saadparwaiz1/cmp_luasnip", "onsails/lspkind.nvim", - "kristijanhusak/vim-dadbod-completion", "hrsh7th/cmp-nvim-lsp", "hrsh7th/cmp-buffer", @@ -69,7 +68,6 @@ return { { name = "luasnip" }, { name = "buffer" }, { name = "path" }, - { name = "vim-dadbod-completion" }, { name = "go_pkgs" }, }, matching = { @@ -90,7 +88,6 @@ return { nvim_lua = "[API]", nvim_lsp = "[LSP]", luasnip = "[SNIP]", - vim_dadbod_completion = "[DBUI]", path = "[PATH]", buffer = "[BUFF]", go_pkgs = "[PKGS]", diff --git a/.config/nvim/lua/plugins/trouble.lua b/.config/nvim/lua/plugins/trouble.lua index 37d169d..fc718d4 100644 --- a/.config/nvim/lua/plugins/trouble.lua +++ b/.config/nvim/lua/plugins/trouble.lua @@ -1,47 +1,47 @@ return { - "folke/trouble.nvim", - opts = {}, - cmd = "Trouble", - keys = { - { - "xx", - "Trouble diagnostics toggle", - desc = "Diagnostics (Trouble)", - }, - { - "xX", - "Trouble diagnostics toggle filter.buf=0", - desc = "Buffer Diagnostics (Trouble)", - }, - { - "xj", - "Trouble diagnostics next", - desc = "Diagnostics Next (Trouble)", - }, - { - "xk", - "Trouble diagnostics prev", - desc = "Diagnostics Previous (Trouble)", - }, - { - "cs", - "Trouble symbols toggle focus=false", - desc = "Symbols (Trouble)", - }, - { - "cl", - "Trouble lsp toggle focus=false win.position=right", - desc = "LSP Definitions / references / ... (Trouble)", - }, - { - "xL", - "Trouble loclist toggle", - desc = "Location List (Trouble)", - }, - { - "xQ", - "Trouble qflist toggle", - desc = "Quickfix List (Trouble)", - }, - }, + "folke/trouble.nvim", + opts = {}, + cmd = "Trouble", + keys = { + { + "xx", + "Trouble diagnostics toggle", + desc = "Diagnostics (Trouble)", + }, + { + "xX", + "Trouble diagnostics toggle filter.buf=0", + desc = "Buffer Diagnostics (Trouble)", + }, + { + "xj", + "Trouble diagnostics next", + desc = "Diagnostics Next (Trouble)", + }, + { + "xk", + "Trouble diagnostics prev", + desc = "Diagnostics Previous (Trouble)", + }, + { + "cs", + "Trouble symbols toggle focus=false", + desc = "Symbols (Trouble)", + }, + { + "cl", + "Trouble lsp toggle focus=false win.position=right", + desc = "LSP Definitions / references / ... (Trouble)", + }, + { + "xL", + "Trouble loclist toggle", + desc = "Location List (Trouble)", + }, + { + "xQ", + "Trouble qflist toggle", + desc = "Quickfix List (Trouble)", + }, + }, } diff --git a/.config/nvim/lua/plugins/vim-dadbod.lua b/.config/nvim/lua/plugins/vim-dadbod.lua deleted file mode 100644 index daa4968..0000000 --- a/.config/nvim/lua/plugins/vim-dadbod.lua +++ /dev/null @@ -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, -}