diff options
| author | Mamrezo Zare <MaMrEzO@GMail.Com> | 2022-09-16 17:09:23 +0430 |
|---|---|---|
| committer | Stephan Seitz <stephan.seitz@fau.de> | 2022-11-25 19:51:44 +0100 |
| commit | 1656f67f261ab51525288d0c4b38e1577f79eaf3 (patch) | |
| tree | f6723c1b823ed182c1679b8958958d13d4f6c6ad /lua | |
| parent | Expand locals to include properties and methods (diff) | |
| download | nvim-treesitter-1656f67f261ab51525288d0c4b38e1577f79eaf3.tar nvim-treesitter-1656f67f261ab51525288d0c4b38e1577f79eaf3.tar.gz nvim-treesitter-1656f67f261ab51525288d0c4b38e1577f79eaf3.tar.bz2 nvim-treesitter-1656f67f261ab51525288d0c4b38e1577f79eaf3.tar.lz nvim-treesitter-1656f67f261ab51525288d0c4b38e1577f79eaf3.tar.xz nvim-treesitter-1656f67f261ab51525288d0c4b38e1577f79eaf3.tar.zst nvim-treesitter-1656f67f261ab51525288d0c4b38e1577f79eaf3.zip | |
handle `opts` as number, #3323
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/nvim-treesitter/statusline.lua | 6 |
1 files changed, 3 insertions, 3 deletions
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" } |
