akinsho / bufferline.nvim

A snazzy bufferline for Neovim

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Bug]: Lua-language-server annotations mismatch

hinell opened this issue · comments

Is there an existing issue for this?

  • I have searched the existing issues

What happened?

Hi. Thanks for the great project. Came across a subtle annotations issue.

---@alias bufferline.DiagnosticIndicator fun(count: number, level: number, errors: table<string, any>, ctx: table<string, any>): string

diagnostics_indicator = function(count, level)
local icon = level:match("error") and " " or ""
return " " .. icon .. count
end

The above two signatures mismatch. level should be string, not a number.

What did you expect to happen?

Correct LLS annotations

Config

n/a

Additional Information

No response

commit

1a33975

commented

@hinell thanks for reporting please feel free to raise a PR to tweak it 🙏🏾