fix offsetting bufferline from nvim-tree
This commit is contained in:
@@ -5,8 +5,17 @@ return {
|
|||||||
opts = {
|
opts = {
|
||||||
options = {
|
options = {
|
||||||
mode = "tabs",
|
mode = "tabs",
|
||||||
|
themable = true,
|
||||||
separator_style = "slant",
|
separator_style = "slant",
|
||||||
diagnostics = "nvim_lsp",
|
diagnostics = "nvim_lsp",
|
||||||
|
-- diagnostics_indicator = function(count, level, diagnostics_dict, context)
|
||||||
|
-- local s = " "
|
||||||
|
-- for e, n in pairs(diagnostics_dict) do
|
||||||
|
-- local sym = e == "error" and " " or (e == "warning" and " " or " ")
|
||||||
|
-- s = s .. n .. sym
|
||||||
|
-- end
|
||||||
|
-- return s
|
||||||
|
-- end,
|
||||||
always_show_bufferline = false,
|
always_show_bufferline = false,
|
||||||
show_tab_indicators = true,
|
show_tab_indicators = true,
|
||||||
color_icons = true,
|
color_icons = true,
|
||||||
@@ -16,11 +25,15 @@ return {
|
|||||||
style = "underline",
|
style = "underline",
|
||||||
},
|
},
|
||||||
offsets = {
|
offsets = {
|
||||||
|
{
|
||||||
filetype = "NvimTree",
|
filetype = "NvimTree",
|
||||||
text = "File Explorer",
|
text = function()
|
||||||
text_align = "left",
|
return vim.fn.getcwd()
|
||||||
|
end,
|
||||||
|
highlight = "Directory",
|
||||||
separator = true,
|
separator = true,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user