style: use nvim-navic for breadcrumbs, disable treesitter-context

This commit is contained in:
2024-12-08 20:25:41 -05:00
parent 170a6840b5
commit 1ed617ae84
3 changed files with 67 additions and 8 deletions
+13 -6
View File
@@ -99,16 +99,16 @@ return {
section_separators = { left = '', right = '' }, -- old separators:  
disabled_filetypes = {
statusline = { 'alpha', 'dashboard', 'Outline', 'NvimTree' },
winbar = {},
winbar = { 'alpha', 'dashboard', 'Outline', 'NvimTree' },
},
ignore_focus = {},
always_divide_middle = true,
always_show_tabline = true,
globalstatus = false,
refresh = {
statusline = 1000,
tabline = 1000,
winbar = 1000,
statusline = 100,
tabline = 100,
winbar = 100,
},
},
sections = {
@@ -129,7 +129,7 @@ return {
{
'filetype',
colored = true,
icon_only = true,
icon_only = false,
cond = conditions.min_statusline_width(90),
separator = '',
},
@@ -264,7 +264,14 @@ return {
lualine_z = {},
},
tabline = {},
winbar = {},
winbar = {
lualine_a = {},
lualine_b = { { 'navic', color_correction = 'nil' } },
lualine_c = {},
lualine_x = {},
lualine_y = {},
lualine_z = {},
},
inactive_winbar = {},
extensions = { 'nvim-tree', 'lazy', 'trouble', 'quickfix', 'fzf', 'mason' },
})
+51
View File
@@ -0,0 +1,51 @@
return {
'SmiteshP/nvim-navic',
dependencies = {
'neovim/nvim-lspconfig',
},
event = 'VeryLazy',
opts = {
icons = {
File = '󰈙 ',
Module = '',
Namespace = '󰌗 ',
Package = '',
Class = '󰌗 ',
Method = '󰆧 ',
Property = '',
Field = '',
Constructor = '',
Enum = '󰕘',
Interface = '󰕘',
Function = '󰊕 ',
Variable = '󰆧 ',
Constant = '󰏿 ',
String = '󰀬 ',
Number = '󰎠 ',
Boolean = '',
Array = '󰅪 ',
Object = '󰅩 ',
Key = '󰌋 ',
Null = '󰟢 ',
EnumMember = '',
Struct = '󰌗 ',
Event = '',
Operator = '󰆕 ',
TypeParameter = '󰊄 ',
},
lsp = {
auto_attach = true,
preference = nil,
},
highlight = false,
separator = ' > ',
depth_limit = 0,
depth_limit_indicator = '..',
safe_output = true,
lazy_update_context = false,
click = true,
format_text = function(text)
return text
end,
},
}
+1
View File
@@ -1,5 +1,6 @@
return {
'nvim-treesitter/nvim-treesitter-context',
enabled = false,
dependencies = {
'nvim-treesitter/nvim-treesitter',
},