nvim-strict icon indicating copy to clipboard operation
nvim-strict copied to clipboard

BUG: all of my code is highlighted in red

Open ksharizard opened this issue 1 year ago • 1 comments

Code in any filetype is always highlighted in red. It looks like the following:

image

ksharizard avatar Aug 20 '24 12:08 ksharizard

This is clearly an issue, but I will need more information to help you diagnose it. When you have a buffer open and exhibiting this behaviour, could you please provide the output of the Neovim command lua print(vim.bo.textwidth)?

For now, you can disable the highlighting of overlong lines, which I believe is at fault.

require('strict').setup({ overlong_lines = { highlight = false } })

emileferreira avatar Aug 21 '24 13:08 emileferreira

Hi! Sorry for the very late response. I must have missed your comment.

It was actually the highlight_deep_nesting() function causing the issue. The regex was applying to all the words in a file rather than the deeply nested code blocks. I reworked in and sent a pr.

Love your plugin and wish you the best for your future endeavors!

ksharizard avatar Jan 07 '25 23:01 ksharizard

@GhoulBoii Could this be the result of the latest commit? It used to highlight only the "tabs" like shown on the readme.

Image

cdekort avatar Feb 22 '25 15:02 cdekort