96 lines
2.6 KiB
Lua
96 lines
2.6 KiB
Lua
return {
|
|
{
|
|
"AstroNvim/astroui",
|
|
dependencies = {
|
|
{
|
|
"nvim-focus/focus.nvim",
|
|
version = false,
|
|
opts = {
|
|
enable = true,
|
|
commands = true,
|
|
autoresize = {
|
|
enable = true,
|
|
width = 0,
|
|
height = 0,
|
|
minwidth = 0,
|
|
minheight = 0,
|
|
focusedwindow_minwidth = 0,
|
|
focusedwindow_minheight = 0,
|
|
height_quickfix = 10,
|
|
},
|
|
split = {
|
|
bufnew = false,
|
|
tmux = false,
|
|
},
|
|
ui = {
|
|
number = false,
|
|
relativenumber = false,
|
|
hybridnumber = false,
|
|
absolutenumber_unfocussed = false,
|
|
cursorline = true,
|
|
cursorcolumn = false,
|
|
colorcolumn = {
|
|
enable = false,
|
|
list = "+1",
|
|
},
|
|
signcolumn = true,
|
|
winhighlight = false,
|
|
},
|
|
},
|
|
},
|
|
},
|
|
---@type AstroUIOpts
|
|
opts = {
|
|
colorscheme = "cyberdream",
|
|
-- add new user interface icon
|
|
icons = {
|
|
VimIcon = "",
|
|
ScrollText = "",
|
|
GitBranch = "",
|
|
GitAdd = "",
|
|
GitChange = "",
|
|
GitDelete = "",
|
|
},
|
|
-- modify variables used by heirline but not defined in the setup call directly
|
|
status = {
|
|
-- define the separators between each section
|
|
separators = {
|
|
left = { "", "" }, -- separator for the left side of the statusline
|
|
right = { "", "" }, -- separator for the right side of the statusline
|
|
tab = { "", "" },
|
|
},
|
|
-- add new colors that can be used by heirline
|
|
colors = function(hl)
|
|
local get_hlgroup = require("astroui").get_hlgroup
|
|
-- use helper function to get highlight group properties
|
|
local comment_fg = get_hlgroup("Comment").fg
|
|
hl.git_branch_fg = comment_fg
|
|
hl.git_added = comment_fg
|
|
hl.git_changed = comment_fg
|
|
hl.git_removed = comment_fg
|
|
hl.blank_bg = get_hlgroup("Folded").fg
|
|
hl.file_info_bg = get_hlgroup("Visual").bg
|
|
hl.nav_icon_bg = get_hlgroup("String").fg
|
|
hl.nav_fg = hl.nav_icon_bg
|
|
hl.folder_icon_bg = get_hlgroup("Error").fg
|
|
return hl
|
|
end,
|
|
attributes = {
|
|
mode = { bold = true },
|
|
},
|
|
icon_highlights = {
|
|
file_icon = {
|
|
statusline = false,
|
|
},
|
|
},
|
|
},
|
|
},
|
|
},
|
|
{
|
|
"rebelot/heirline.nvim",
|
|
opts = {
|
|
statusline = false,
|
|
},
|
|
},
|
|
}
|