From 1656f67f261ab51525288d0c4b38e1577f79eaf3 Mon Sep 17 00:00:00 2001 From: Mamrezo Zare Date: Fri, 16 Sep 2022 17:09:23 +0430 Subject: handle `opts` as number, #3323 --- lua/nvim-treesitter/statusline.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lua') diff --git a/lua/nvim-treesitter/statusline.lua b/lua/nvim-treesitter/statusline.lua index 82be06537..cd75fcb00 100644 --- a/lua/nvim-treesitter/statusline.lua +++ b/lua/nvim-treesitter/statusline.lua @@ -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" } -- cgit v1.2.3-70-g09d2