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

[BUG] FlutterWidgetGuides highlight group gets overwritten on entering dart file #325

Closed
1 task done
hrideshmg opened this issue Jan 18, 2024 · 0 comments · Fixed by #335
Closed
1 task done

[BUG] FlutterWidgetGuides highlight group gets overwritten on entering dart file #325

hrideshmg opened this issue Jan 18, 2024 · 0 comments · Fixed by #335

Comments

@hrideshmg
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

If the highlight group FlutterWidgetGuides is set through vim.api.nvim_set_hl() in (init.lua), it gets overwritten when opening a dart file to instead use the colors from the Normal group.

Expected Behavior

The FlutterWidgetGuides highlight group retains the custom colors set in (init.lua).

Steps To Reproduce

N/A

Environment

- OS: Arch linux
- Flutter version: 3.16.6-1
- Is flutter in $PATH: yes
- neovim version: v0.9.5

Anything else?

I'm not sure if this is the correct way to override the highlight group but i was unable to find any alternative way, I've got it to work by setting up an autocmd on BuffEnter but it feels like a hacky way to do it.

If possible i would like to work on this issue by either adding a config parameter for the widget guide color or doing a check for the highlight group already being set. This is my first issue on GitHub, and I would appreciate guidance on the best approach.

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

Successfully merging a pull request may close this issue.

1 participant