From 74baebf3f8c16e2561022e871012b7c69f93567b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sascha=20L=C3=BCdecke?= Date: Fri, 11 Jul 2025 21:34:30 +0200 Subject: [PATCH] Lualine: dropped breadcrumb winbar, was not in use at all - research turned up no usable plugin or method to display stuff I really want or need to know. --- lua/config/lualine.lua | 125 ++++++++++++++--------------------------- 1 file changed, 41 insertions(+), 84 deletions(-) diff --git a/lua/config/lualine.lua b/lua/config/lualine.lua index 75c1e37..7109128 100644 --- a/lua/config/lualine.lua +++ b/lua/config/lualine.lua @@ -1,84 +1,41 @@ - -- an alternative might be: - -- https://github.com/nvim-treesitter/nvim-treesitter-context - local function breadcrumb() - local result = require 'nvim-treesitter'.statusline( - { - type_patterns = { - "class", - "impl", - "function", - "method", - "import", - "for", - "if", - "while", - "variable", - "comment", - }, - separator = " ▶ " - } - ) - if result == "" then - result = ' ' - elseif result == nil then - result = '' - end - return result - end - - require("lualine").setup { - options = { - icons_enabled = false, - theme = 'papercolor_light', - component_separators = {}, - section_separators = {}, - disabled_filetypes = { - statusline = {}, - winbar = { "neo-tree" }, - }, - ignore_focus = {}, - always_divide_middle = true, - globalstatus = false, - refresh = { - statusline = 1000, - tabline = 1000, - winbar = 1000, - } - }, - sections = { - lualine_a = { { 'filename', path = 1, shorting_target = 50 } }, - lualine_b = { 'branch', 'diff', 'diagnostics' }, - lualine_c = {}, - lualine_x = { 'encoding', 'fileformat', 'filetype', 'lsp_status' }, - lualine_y = { 'filesize' }, - lualine_z = { 'progress', 'location' } - }, - inactive_sections = { - lualine_a = { { 'filename', path = 1, shorting_target = 50 } }, - lualine_b = {}, - lualine_c = {}, - -- lualine_x = { 'encoding', 'fileformat', 'filetype' }, - lualine_x = {}, - lualine_y = { 'filesize' }, - lualine_z = { 'location' } - }, - tabline = {}, - winbar = { - lualine_a = { - { - breadcrumb, - color = { bg = '#2a2a2a', fg = '#cfcfcf' }, - }, - }, - }, - inactive_winbar = { - lualine_a = { - { - breadcrumb, - color = { bg = '#101010', fg = '#999999' }, - draw_empty = true - } - }, - }, - extensions = {} - } +require("lualine").setup { + options = { + icons_enabled = false, + theme = 'papercolor_light', + component_separators = {}, + section_separators = {}, + disabled_filetypes = { + statusline = {}, + winbar = { "neo-tree" }, + }, + ignore_focus = {}, + always_divide_middle = true, + globalstatus = false, + refresh = { + statusline = 1000, + tabline = 1000, + winbar = 1000, + } + }, + sections = { + lualine_a = { { 'filename', path = 1, shorting_target = 50 } }, + lualine_b = { 'branch', 'diff', 'diagnostics' }, + lualine_c = {}, + lualine_x = { 'encoding', 'fileformat', 'filetype', 'lsp_status' }, + lualine_y = { 'filesize' }, + lualine_z = { 'progress', 'location' } + }, + inactive_sections = { + lualine_a = { { 'filename', path = 1, shorting_target = 50 } }, + lualine_b = {}, + lualine_c = {}, + -- lualine_x = { 'encoding', 'fileformat', 'filetype' }, + lualine_x = {}, + lualine_y = { 'filesize' }, + lualine_z = { 'location' } + }, + tabline = {}, + winbar = {}, -- formerly breadcrumb here + inactive_winbar = {}, + extensions = {} +}