Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No good working in golang #97

Open
RAprogramm opened this issue Mar 20, 2023 · 6 comments
Open

No good working in golang #97

RAprogramm opened this issue Mar 20, 2023 · 6 comments

Comments

@RAprogramm
Copy link

RAprogramm commented Mar 20, 2023

In .go files it shows only functions, so variables in functions not available (I am talking about winbar)

@SmiteshP
Copy link
Owner

Can you share the output by get_location and get_data and what is missing in them?

@RAprogramm
Copy link
Author

Screencast_00004.webm

get_location

%#NavicIconsMethod# %*%#NavicText#(*APIserver).configureStore%*

get_data (for e in pairs(navic.get_data()) and one more for-loop)

scope table: 0x419abc80
icon  
kind 6
type Method
name (*APIserver).configureStore

@MaiLunJiye
Copy link

Maybe the cause of this problem is the same as the #98.

@SmiteshP
Copy link
Owner

Yep, it might be issue with is_available function. @RAprogramm Can you try calling is_available explicitly in your winbar config for which ever plugin you are using.

function() return require("nvim-navic").is_available() end

@marcelbeumer
Copy link

The issue is that the Go LSP (gopls) is providing less context that for example a Lua LSP (which gives too much structure imo). So with Go you only see the function, method or struct but not deeper than one level in nvim-navic.

I think treesitter might be a better fit for this plugin that LSP. Optionally having which types to put in the breadcrumb configurable.

@SmiteshP
Copy link
Owner

@marcelbeumer Can you give example of code snippet and the information shown vs what information you want to see instead? I am not well versed in golang

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants