Update something
This commit is contained in:
parent
e3c94cce54
commit
147ca5ddbc
81 changed files with 3055 additions and 326 deletions
52
nvim.bak/lua/config/plugins/ui/alpha.lua
Normal file
52
nvim.bak/lua/config/plugins/ui/alpha.lua
Normal file
|
@ -0,0 +1,52 @@
|
|||
return {
|
||||
"goolord/alpha-nvim",
|
||||
event = "VimEnter",
|
||||
config = function()
|
||||
local alpha = require("alpha")
|
||||
local dashboard = require("alpha.themes.dashboard")
|
||||
|
||||
-- Set header
|
||||
dashboard.section.header.val = {
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ███╗ ██╗███████╗ ██████╗ ██╗ ██╗██╗███╗ ███╗ ",
|
||||
" ████╗ ██║██╔════╝██╔═══██╗██║ ██║██║████╗ ████║ ",
|
||||
" ██╔██╗ ██║█████╗ ██║ ██║██║ ██║██║██╔████╔██║ ",
|
||||
" ██║╚██╗██║██╔══╝ ██║ ██║╚██╗ ██╔╝██║██║╚██╔╝██║ ",
|
||||
" ██║ ╚████║███████╗╚██████╔╝ ╚████╔╝ ██║██║ ╚═╝ ██║ ",
|
||||
" ╚═╝ ╚═══╝╚══════╝ ╚═════╝ ╚═══╝ ╚═╝╚═╝ ╚═╝ ",
|
||||
" ",
|
||||
}
|
||||
|
||||
-- Set menu
|
||||
dashboard.section.buttons.val = {
|
||||
dashboard.button("?", "? > Help", "<cmd>WhichKey<CR>", { desc = "Help/Search backward" }),
|
||||
-- dashboard.button("SPC l", "L > Lazy", "<cmd>Lazy<CR>", { desc = "Lazy" }),
|
||||
-- dashboard.button("SPC m", "M > Mason", "<cmd>Mason<CR>", { desc = "Mason" }),
|
||||
dashboard.button(
|
||||
"SPC ee",
|
||||
" > Toggle file explorer",
|
||||
"<cmd>Neotree toggle<CR>",
|
||||
{ desc = "Toggle file tree" }
|
||||
),
|
||||
dashboard.button("SPC ff", " > Find File", "<cmd>Telescope find_files<CR>", { desc = "Find files" }),
|
||||
dashboard.button(
|
||||
"SPC sr",
|
||||
" > Restore Session",
|
||||
"<cmd>SessionRestore<CR>",
|
||||
{ desc = "Restore session" }
|
||||
),
|
||||
dashboard.button("q", " > Quit NVIM", "<cmd>quit<CR>", { desc = "Quit" }),
|
||||
}
|
||||
|
||||
-- Send config to alpha
|
||||
alpha.setup(dashboard.opts)
|
||||
|
||||
-- Disable folding on alpha buffer
|
||||
vim.cmd([[autocmd FileType alpha setlocal nofoldenable]])
|
||||
end,
|
||||
}
|
16
nvim.bak/lua/config/plugins/ui/catppuccin.lua
Normal file
16
nvim.bak/lua/config/plugins/ui/catppuccin.lua
Normal file
|
@ -0,0 +1,16 @@
|
|||
return {
|
||||
{
|
||||
"catppuccin/nvim",
|
||||
name = "catppuccin",
|
||||
priority = 1000,
|
||||
config = function()
|
||||
require("catppuccin").setup({
|
||||
integrations = {
|
||||
mason = true,
|
||||
},
|
||||
})
|
||||
-- setup must be called before loading
|
||||
vim.cmd.colorscheme("catppuccin")
|
||||
end,
|
||||
},
|
||||
}
|
5
nvim.bak/lua/config/plugins/ui/dressing.lua
Normal file
5
nvim.bak/lua/config/plugins/ui/dressing.lua
Normal file
|
@ -0,0 +1,5 @@
|
|||
return {
|
||||
"stevearc/dressing.nvim",
|
||||
enabled = false,
|
||||
event = "VeryLazy",
|
||||
}
|
9
nvim.bak/lua/config/plugins/ui/indent-blankline.lua
Normal file
9
nvim.bak/lua/config/plugins/ui/indent-blankline.lua
Normal file
|
@ -0,0 +1,9 @@
|
|||
return {
|
||||
"lukas-reineke/indent-blankline.nvim",
|
||||
event = { "BufReadPre", "BufNewFile" },
|
||||
main = "ibl",
|
||||
opts = {
|
||||
indent = { char = "¦" },
|
||||
-- indent = { char = "│" },
|
||||
},
|
||||
}
|
25
nvim.bak/lua/config/plugins/ui/lua-line.lua
Normal file
25
nvim.bak/lua/config/plugins/ui/lua-line.lua
Normal file
|
@ -0,0 +1,25 @@
|
|||
return {
|
||||
{
|
||||
"nvim-lualine/lualine.nvim",
|
||||
dependencies = { "nvim-tree/nvim-web-devicons" },
|
||||
config = function()
|
||||
require("lualine").setup({
|
||||
options = {
|
||||
theme = "horizon",
|
||||
},
|
||||
sections = {
|
||||
lualine_b = {
|
||||
{
|
||||
"filename",
|
||||
symbols = {
|
||||
unnamed = "",
|
||||
},
|
||||
},
|
||||
},
|
||||
lualine_c = {},
|
||||
lualine_x = {},
|
||||
},
|
||||
})
|
||||
end,
|
||||
},
|
||||
}
|
15
nvim.bak/lua/config/plugins/ui/todo-comments.lua
Normal file
15
nvim.bak/lua/config/plugins/ui/todo-comments.lua
Normal file
|
@ -0,0 +1,15 @@
|
|||
return {
|
||||
"folke/todo-comments.nvim",
|
||||
event = { "BufReadPre", "BufNewFile" },
|
||||
dependencies = { "nvim-lua/plenary.nvim" },
|
||||
config = function()
|
||||
require("todo-comments").setup()
|
||||
vim.keymap.set("n", "<leader>tn", function()
|
||||
require("todo-comments").jump_next()
|
||||
end, { desc = "Next todo comment" })
|
||||
|
||||
vim.keymap.set("n", "<leader>tp", function()
|
||||
require("todo-comments").jump_prev()
|
||||
end, { desc = "Previous todo comment" })
|
||||
end,
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue