refactor: implement modular plugin structure
This commit is contained in:
parent
ede41b38f0
commit
af74dce5b9
17 changed files with 1853 additions and 1204 deletions
73
lua/custom/plugins/ui.lua
Normal file
73
lua/custom/plugins/ui.lua
Normal file
|
|
@ -0,0 +1,73 @@
|
|||
--[plugins/ui.lua]
|
||||
|
||||
return {
|
||||
{ -- Colorscheme (Tokyonight)
|
||||
'folke/tokyonight.nvim',
|
||||
priority = 1000,
|
||||
init = function()
|
||||
vim.cmd.colorscheme 'tokyonight-night'
|
||||
vim.cmd.hi 'Comment gui=none'
|
||||
--[[
|
||||
vim.api.nvim_set_hl(0, "Normal", { bg = "none" })
|
||||
vim.api.nvim_set_hl(0, "NormalFloat", { bg = "none" })
|
||||
vim.api.nvim_set_hl(0, "SignColumn", { bg = "none" })
|
||||
vim.api.nvim_set_hl(0, "LineNr", { bg = "none" })
|
||||
vim.api.nvim_set_hl(0, "EndOfBuffer", { bg = "none" })]]
|
||||
end,
|
||||
},
|
||||
|
||||
{ -- Evil Lualine (statusline)
|
||||
'nvim-lualine/lualine.nvim',
|
||||
dependencies = { 'nvim-tree/nvim-web-devicons' },
|
||||
config = function()
|
||||
require('lualine').setup {
|
||||
options = {
|
||||
theme = 'tokyonight',
|
||||
icons_enabled = true,
|
||||
component_separators = { left = '│', right = '│' },
|
||||
section_separators = { left = '', right = '' },
|
||||
},
|
||||
sections = {
|
||||
lualine_a = { 'mode' },
|
||||
lualine_b = { 'branch', 'diff', 'diagnostics' },
|
||||
lualine_c = { { 'filename', path = 1 } },
|
||||
lualine_x = { 'encoding', 'fileformat', 'filetype' },
|
||||
lualine_y = { 'progress' },
|
||||
lualine_z = { 'location' },
|
||||
},
|
||||
}
|
||||
end,
|
||||
},
|
||||
|
||||
{ -- Bufferline (tabs at the top)
|
||||
'akinsho/bufferline.nvim',
|
||||
version = '*',
|
||||
dependencies = { 'nvim-tree/nvim-web-devicons', 'folke/tokyonight.nvim' },
|
||||
config = function()
|
||||
require("bufferline").setup {
|
||||
options = {
|
||||
mode = "buffers",
|
||||
diagnostics = "nvim_lsp",
|
||||
separator_style = "slant",
|
||||
show_buffer_close_icons = false,
|
||||
show_close_icon = false,
|
||||
always_show_bufferline = true,
|
||||
offsets = {
|
||||
{
|
||||
filetype = "NvimTree",
|
||||
text = "File Explorer",
|
||||
highlight = "Directory",
|
||||
separator = true,
|
||||
},
|
||||
},
|
||||
},
|
||||
highlights = require("tokyonight.groups").bufferline,
|
||||
}
|
||||
|
||||
-- Optional: dim inactive buffers
|
||||
vim.api.nvim_set_hl(0, "BufferLineBackground", { fg = "#565f89", bg = "#1a1b26" })
|
||||
vim.api.nvim_set_hl(0, "BufferLineBufferVisible", { fg = "#565f89", bg = "#1a1b26" })
|
||||
vim.api.nvim_set_hl(0, "BufferLineBufferSelected", { fg = "#c0caf5", bg = "#1f2335", bold = true })
|
||||
end,
|
||||
},
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue