style: use nvim-navic for breadcrumbs, disable treesitter-context
This commit is contained in:
@@ -99,16 +99,16 @@ return {
|
|||||||
section_separators = { left = '', right = '' }, -- old separators:
|
section_separators = { left = '', right = '' }, -- old separators:
|
||||||
disabled_filetypes = {
|
disabled_filetypes = {
|
||||||
statusline = { 'alpha', 'dashboard', 'Outline', 'NvimTree' },
|
statusline = { 'alpha', 'dashboard', 'Outline', 'NvimTree' },
|
||||||
winbar = {},
|
winbar = { 'alpha', 'dashboard', 'Outline', 'NvimTree' },
|
||||||
},
|
},
|
||||||
ignore_focus = {},
|
ignore_focus = {},
|
||||||
always_divide_middle = true,
|
always_divide_middle = true,
|
||||||
always_show_tabline = true,
|
always_show_tabline = true,
|
||||||
globalstatus = false,
|
globalstatus = false,
|
||||||
refresh = {
|
refresh = {
|
||||||
statusline = 1000,
|
statusline = 100,
|
||||||
tabline = 1000,
|
tabline = 100,
|
||||||
winbar = 1000,
|
winbar = 100,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
sections = {
|
sections = {
|
||||||
@@ -129,7 +129,7 @@ return {
|
|||||||
{
|
{
|
||||||
'filetype',
|
'filetype',
|
||||||
colored = true,
|
colored = true,
|
||||||
icon_only = true,
|
icon_only = false,
|
||||||
cond = conditions.min_statusline_width(90),
|
cond = conditions.min_statusline_width(90),
|
||||||
separator = '',
|
separator = '',
|
||||||
},
|
},
|
||||||
@@ -264,9 +264,16 @@ return {
|
|||||||
lualine_z = {},
|
lualine_z = {},
|
||||||
},
|
},
|
||||||
tabline = {},
|
tabline = {},
|
||||||
winbar = {},
|
winbar = {
|
||||||
|
lualine_a = {},
|
||||||
|
lualine_b = { { 'navic', color_correction = 'nil' } },
|
||||||
|
lualine_c = {},
|
||||||
|
lualine_x = {},
|
||||||
|
lualine_y = {},
|
||||||
|
lualine_z = {},
|
||||||
|
},
|
||||||
inactive_winbar = {},
|
inactive_winbar = {},
|
||||||
extensions = { 'nvim-tree', 'lazy', 'trouble', 'quickfix', 'fzf', 'mason' },
|
extensions = { 'nvim-tree', 'lazy', 'trouble', 'quickfix', 'fzf', 'mason' },
|
||||||
})
|
})
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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,5 +1,6 @@
|
|||||||
return {
|
return {
|
||||||
'nvim-treesitter/nvim-treesitter-context',
|
'nvim-treesitter/nvim-treesitter-context',
|
||||||
|
enabled = false,
|
||||||
dependencies = {
|
dependencies = {
|
||||||
'nvim-treesitter/nvim-treesitter',
|
'nvim-treesitter/nvim-treesitter',
|
||||||
},
|
},
|
||||||
@@ -11,4 +12,4 @@ return {
|
|||||||
max_lines = 3,
|
max_lines = 3,
|
||||||
-- separator = '',
|
-- separator = '',
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user