mirror of
https://github.com/marianozunino/nvim.git
synced 2025-06-28 10:33:49 -03:00
chore: organize ui shit in its own folder
This commit is contained in:
parent
f6e7ce77d8
commit
9569774c7b
10 changed files with 45 additions and 8 deletions
|
@ -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
|
||||
|
11
lua/config/plugins/ui/init.lua
Normal file
11
lua/config/plugins/ui/init.lua
Normal 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
|
25
lua/config/plugins/ui/whichkey.lua
Normal file
25
lua/config/plugins/ui/whichkey.lua
Normal 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
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue