From c8b6b4f1d98876de05844fe99862a8fbdc28cc20 Mon Sep 17 00:00:00 2001 From: Henrik Hautakoski Date: Sun, 26 Jan 2025 18:45:19 +0100 Subject: [PATCH] nvim/lua/user/plugins/ui/statusline.lua: minor fixes --- nvim/lua/user/plugins/ui/statusline.lua | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/nvim/lua/user/plugins/ui/statusline.lua b/nvim/lua/user/plugins/ui/statusline.lua index 8c927f7..d3e0bbb 100644 --- a/nvim/lua/user/plugins/ui/statusline.lua +++ b/nvim/lua/user/plugins/ui/statusline.lua @@ -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 = {