chore: organize ui shit in its own folder

This commit is contained in:
Mariano Z. 2024-12-22 12:13:02 -03:00
parent f6e7ce77d8
commit 9569774c7b
Signed by: marianozunino
GPG key ID: 4C73BAD25156DACE
10 changed files with 45 additions and 8 deletions

View file

@ -4,11 +4,10 @@ local M = {
M.config = function()
local startify = require("alpha.themes.startify")
startify.section.bottom_buttons.val = {
startify.button("q", "Quit", "<cmd>q <CR>"), -- preserve the quit button
startify.button("e", "New file", "<cmd>ene <CR>"),
startify.button("q", "Quit", "<cmd>q <CR>"),
}
require("alpha").setup(startify.config)
end

View file

@ -0,0 +1,11 @@
local M = {
require("config.plugins.ui.colors"),
require("config.plugins.ui.alpha"),
require("config.plugins.ui.dressing"),
require("config.plugins.ui.whichkey"),
require("config.plugins.ui.noice"),
require("config.plugins.ui.scroll"),
require("config.plugins.ui.status"),
}
return M

View file

@ -0,0 +1,25 @@
local M = {
"folke/which-key.nvim",
event = "VeryLazy",
init = function()
vim.o.timeout = true
vim.o.timeoutlen = 500
end,
}
M.config = function()
require("which-key").setup({
win = {
border = "single",
},
plugins = {
marks = true,
registers = true,
spelling = {
enabled = false,
},
},
})
end
return M

View file

@ -7,6 +7,7 @@ local M = {
M.config = function()
vim.opt.undodir = vim.fn.expand("~/.config/undodir")
nmap("<leader>u", "<cmd>UndotreeToggle<cr>", { desc = "Toggle undo tree" })
end
return M