andersevenrud / nvim_context_vt

Virtual text context for neovim treesitter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Golang nested struct doesn't work

mortymacs opened this issue · comments

Hi,

In Golang, when we have nested struct it doesn't work completely:
image

While it works fine in nested dictionary:
image

My config:

require("nvim_context_vt").setup({
  disable_virtual_lines = true,
  disable_ft = { "markdown", "yaml" },
})

Thank you!

Could you do :NvimContextVtDebug when your cursor is in the position in the screenshot above ?

That should contain the information I need to fix this.

Sure, it's the result:
image

I could fix it locally by updating the config list with these new items:

    'field_declaration',
    'struct_type',

Can I send a PR?

PR is much appreciated 👌