Bekaboo / dropbar.nvim

IDE-like breadcrumbs, out of the box
GNU General Public License v3.0
896 stars 17 forks source link

[Feature]: find symbols in `onsails/lspkind.nvim` firstly and fallback to `opts.icons.kinds.symbols` table. #125

Closed gh-liu closed 6 months ago

gh-liu commented 6 months ago

Problem

Make the symbols same as onsails/lspkind.nvim.

Expected behavior

Maybe add a opts.icons.kinds.use_lspkind option in config to find symbols fistly.

Bekaboo commented 6 months ago

Hi thanks for your feedback!

I don't use lspkind.nvim, after all, unlike nvim-web-devicons, there are not many icons in lspkind -- you can define the icons yourself or just grab the icons from lspkind.nvim and pass them to opts.icons.kinds. Also, notice that dropbar.nvim uses icons that lspkind does not support -- for example, markdownH1/2/3/4/5/6, Null, IfStatement, WhileStatement, etc for custom parsers and treesitter parsers, so using lspkind.nvim is not really an option.