103 lines
1.8 KiB
Lua
103 lines
1.8 KiB
Lua
---@module "lazy.nvim"
|
|
---@type LazySpec[]
|
|
return {
|
|
{"nvim-lualine/lualine.nvim",
|
|
dependencies = {
|
|
"nvim-tree/nvim-web-devicons",
|
|
"sherlock5512/lualine-spell-status",
|
|
},
|
|
opts = {
|
|
options = {
|
|
theme = "auto",
|
|
component_separators = { left = "|", right = "|" },
|
|
section_separators = { left = "", right = "" },
|
|
disabled_filetypes = {
|
|
winbar = {
|
|
'neo-tree',
|
|
'help',
|
|
'snacks_dashboard',
|
|
'telescope',
|
|
'trouble'
|
|
},
|
|
},
|
|
always_divide_middle = true,
|
|
globalstatus = true,
|
|
},
|
|
sections = {
|
|
lualine_a = {
|
|
"mode",
|
|
"spell_status",
|
|
"lsp_status",
|
|
},
|
|
lualine_b = {
|
|
"branch",
|
|
"diff",
|
|
"diagnostics",
|
|
},
|
|
lualine_c = {
|
|
{ "filename", path = 1 },
|
|
{ "filetype", icon_only = true },
|
|
},
|
|
lualine_x = {
|
|
"encoding",
|
|
"fileformat",
|
|
"filetype",
|
|
{ require("lazy.status").updates, cond = require("lazy.status").has_updates },
|
|
},
|
|
lualine_y = {
|
|
"progress",
|
|
"searchcount",
|
|
},
|
|
lualine_z = {
|
|
"location",
|
|
},
|
|
},
|
|
tabline = {},
|
|
winbar = {
|
|
lualine_a = {
|
|
{
|
|
"buffers",
|
|
mode = 3,
|
|
show_modified_status = false,
|
|
icons_enabled = false,
|
|
},
|
|
{
|
|
"filetype",
|
|
icon_only = true,
|
|
},
|
|
{
|
|
"filename",
|
|
file_status = false,
|
|
newfile_status = false,
|
|
path = 0,
|
|
symbols = {
|
|
modified = '',
|
|
readonly = '',
|
|
unnamed = '',
|
|
newfile = '',
|
|
},
|
|
},
|
|
},
|
|
},
|
|
winbar_inactive = {
|
|
lualine_a = {
|
|
{
|
|
"filename",
|
|
file_status = false,
|
|
newfile_status = false,
|
|
path = 0,
|
|
symbols = {
|
|
modified = '',
|
|
readonly = '',
|
|
unnamed = '',
|
|
newfile = '',
|
|
},
|
|
disabled_filetypes = { 'neo-tree' }
|
|
},
|
|
}
|
|
}
|
|
},
|
|
|
|
}
|
|
}
|