mirror of
https://github.com/pnx/dotfiles
synced 2026-06-16 03:14:55 +02:00
nvim/lua/user/plugins/ui/statusline.lua: minor fixes
This commit is contained in:
parent
54adb118e5
commit
c8b6b4f1d9
1 changed files with 11 additions and 5 deletions
|
|
@ -2,7 +2,7 @@ local icons = require("user.icons")
|
||||||
|
|
||||||
local function indent_settings()
|
local function indent_settings()
|
||||||
return (vim.bo.expandtab and "SPC" or "TAB")
|
return (vim.bo.expandtab and "SPC" or "TAB")
|
||||||
.. " "
|
.. ":"
|
||||||
.. (vim.bo.shiftwidth == 0 and vim.bo.tabstop or vim.bo.shiftwidth)
|
.. (vim.bo.shiftwidth == 0 and vim.bo.tabstop or vim.bo.shiftwidth)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
@ -37,7 +37,6 @@ return {
|
||||||
options = {
|
options = {
|
||||||
globalstatus = true,
|
globalstatus = true,
|
||||||
component_separators = "",
|
component_separators = "",
|
||||||
-- section_separators = { "'" .. icons.separator .. "'", color = "StatusLineSeparator" },
|
|
||||||
section_separators = "",
|
section_separators = "",
|
||||||
disabled_filetypes = {
|
disabled_filetypes = {
|
||||||
statusline = {
|
statusline = {
|
||||||
|
|
@ -46,6 +45,7 @@ return {
|
||||||
},
|
},
|
||||||
winbar = {
|
winbar = {
|
||||||
"neo-tree",
|
"neo-tree",
|
||||||
|
"NvimTree",
|
||||||
"alpha"
|
"alpha"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
@ -99,8 +99,6 @@ return {
|
||||||
removed = icons.diff.removed .. " ",
|
removed = icons.diff.removed .. " ",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
|
||||||
lualine_c = {
|
|
||||||
{
|
{
|
||||||
"lsp-status",
|
"lsp-status",
|
||||||
disabled_filetypes = {
|
disabled_filetypes = {
|
||||||
|
|
@ -116,12 +114,20 @@ return {
|
||||||
},
|
},
|
||||||
linter,
|
linter,
|
||||||
},
|
},
|
||||||
|
lualine_c = {},
|
||||||
lualine_x = {
|
lualine_x = {
|
||||||
{
|
{
|
||||||
"filetype",
|
"filetype",
|
||||||
cond = is_not_popup
|
cond = is_not_popup
|
||||||
},
|
},
|
||||||
"fileformat",
|
{
|
||||||
|
"fileformat",
|
||||||
|
symbols = {
|
||||||
|
unix = "NL",
|
||||||
|
dos = "NLCR",
|
||||||
|
mac = 'NL'
|
||||||
|
}
|
||||||
|
},
|
||||||
indent_settings,
|
indent_settings,
|
||||||
},
|
},
|
||||||
lualine_y = {
|
lualine_y = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue