SmiteshP / nvim-navic

Simple winbar/statusline plugin that shows your current code context

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

option to hide `->` strings

boltlessengineer opened this issue · comments

What's the string -> after the navic.setup function mean?

I couldn't find a way to disable this arrow in README.

Cause many peoples are using navic as a winbar component, I think it would be nice to have an option to hide the arrow or combine with separator.

Or is this just lua-language-server's feature?

image

Or is this just lua-language-server's feature?

Yeah, its a lua language server thing. I recently updated the lsp to latest version and started seeing these things too... Not sure which version I was using earlier but this wasn't there before. Also looking at the lsp's repo, there have definitely been some questionable decisions made by the maintainers like adding if, for, while etc as "package" kind.

I don't want to add a broad filter for these ->'s as there might be other lsps making use of it. You can make use of the get_data function and a simple string.gsub( str, "->", "") to get rid of them.