mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
handle opts as number, #3323
This commit is contained in:
parent
e7808349a5
commit
1656f67f26
1 changed files with 3 additions and 3 deletions
|
|
@ -13,9 +13,9 @@ function M.statusline(opts)
|
|||
return
|
||||
end
|
||||
local options = opts or {}
|
||||
-- if type(opts) == "number" then
|
||||
-- options = { indicator_size = opts }
|
||||
-- end
|
||||
if type(opts) == "number" then
|
||||
options = { indicator_size = opts }
|
||||
end
|
||||
local bufnr = options.bufnr or 0
|
||||
local indicator_size = options.indicator_size or 100
|
||||
local type_patterns = options.type_patterns or { "class", "function", "method" }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue