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

Highlight groups of block after docstring changes after completion of final choice node #156

Open
dtetruash opened this issue Oct 11, 2023 · 1 comment

Comments

@dtetruash
Copy link

Using LuaSnip as the snippet engine with Neogen, it is sometimes the case that after the last choice node is completed, the highlight group of the text until end of block is switched to the one of the choice node.
image

Redrawing the UI has no effect, and the only solution I found is to reopen the buffer.

I cannot tell if this is an issue with Neogen or LuaSnip or neither, but this issue does not seem to occur with any other snippets I use, and only became apparent after I installed Neogen.

Here is the minimal config used for Neogen:

{
  "danymat/neogen",
  dependencies = "nvim-treesitter/nvim-treesitter",
  opts = {
    snippet_engine = "luasnip",
  },
  version = "*",
}
@dtetruash
Copy link
Author

I realized this can be avoided if all the snippet temple positions are cycled through up to and including end of docstring. If done, the highlighting updates to the usual comment highlight group.

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

1 participant