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.
This commit is contained in:
@@ -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 = {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user