Open waynerv opened 12 months ago
After some research, I found that in many cases the background color of NavbuddyName
is lost (more precisely, it use the background color of NavbuddyScope
instead), but the foreground color still works. Don't know how all this happens.
vim.api.nvim_set_hl(0, "NavbuddyScope", { bg = "#223249" })
vim.api.nvim_set_hl(0, "NavbuddyName", { fg = "#DCD7BA", bg = "#FFA066" })
expect:
losing bg:
I am using gopls as LSP to write Go code. One common issue I encounter is that when I iterate through the fields of a struct, the focus node in both the preview window and the original window loses its foreground color (figure.1).
However, some fields are displayed correctly with highlight color(figure.2). To resolve this, I have to disable the highlight feature in the source_buffer option.