neogen icon indicating copy to clipboard operation
neogen copied to clipboard

Bug: Neogen not functioning in vue files.

Open TheMartonfi opened this issue 1 year ago • 2 comments
trafficstars

I'm currently trying to configure neogen to generate jsdoc comments for a vue project, I've tested that neogen works fine in js, ts, jsx, tsx so the plugin does work fine for those file types.

When attempting to run ':Neogen' nothing happens in vue files. If there's any way to debug this further please let me know as I'm now at a lost as to why the plugin isn't working.

TheMartonfi avatar Apr 16 '24 22:04 TheMartonfi

Similarly. I tried to enable jsdoc for Svelte (the same way as Vue), but nothing happened.

charnley avatar Jun 10 '24 10:06 charnley

After debugging the neogen lua with some vim.print statements, it looks like the mixed language files has problems finding the right javascript node from the tree. I am not a treesitter expert though, but the locator returns nill when trying to find any of the types like function.

target_node = get_node(all_types_map[filetype]) -- return nill

I think vue might have the same issue because of the HTML-like file format, as svelte.

charnley avatar Jun 12 '24 10:06 charnley