feat(builtin.treesitter): add symbol_width opt (#3105)
* Add options to customize length of symbols and line numbers for gen_from_treesitter * Revert adding symbol_type_width option * Add docs and type hint
This commit is contained in:
@@ -657,7 +657,7 @@ function make_entry.gen_from_treesitter(opts)
|
||||
local bufnr = opts.bufnr or vim.api.nvim_get_current_buf()
|
||||
|
||||
local display_items = {
|
||||
{ width = 25 },
|
||||
{ width = opts.symbol_width or 25 },
|
||||
{ width = 10 },
|
||||
{ remaining = true },
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user