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()
|
||||
return (vim.bo.expandtab and "SPC" or "TAB")
|
||||
.. " "
|
||||
.. ":"
|
||||
.. (vim.bo.shiftwidth == 0 and vim.bo.tabstop or vim.bo.shiftwidth)
|
||||
end
|
||||
|
||||
|
|
@ -37,7 +37,6 @@ return {
|
|||
options = {
|
||||
globalstatus = true,
|
||||
component_separators = "",
|
||||
-- section_separators = { "'" .. icons.separator .. "'", color = "StatusLineSeparator" },
|
||||
section_separators = "",
|
||||
disabled_filetypes = {
|
||||
statusline = {
|
||||
|
|
@ -46,6 +45,7 @@ return {
|
|||
},
|
||||
winbar = {
|
||||
"neo-tree",
|
||||
"NvimTree",
|
||||
"alpha"
|
||||
}
|
||||
},
|
||||
|
|
@ -99,8 +99,6 @@ return {
|
|||
removed = icons.diff.removed .. " ",
|
||||
},
|
||||
},
|
||||
},
|
||||
lualine_c = {
|
||||
{
|
||||
"lsp-status",
|
||||
disabled_filetypes = {
|
||||
|
|
@ -116,12 +114,20 @@ return {
|
|||
},
|
||||
linter,
|
||||
},
|
||||
lualine_c = {},
|
||||
lualine_x = {
|
||||
{
|
||||
"filetype",
|
||||
cond = is_not_popup
|
||||
},
|
||||
"fileformat",
|
||||
{
|
||||
"fileformat",
|
||||
symbols = {
|
||||
unix = "NL",
|
||||
dos = "NLCR",
|
||||
mac = 'NL'
|
||||
}
|
||||
},
|
||||
indent_settings,
|
||||
},
|
||||
lualine_y = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue