emileferreira / nvim-strict

Strict, native code style formatting plugin for Neovim. Expose deep nesting, overlong lines, trailing whitespace, trailing empty lines, todos and inconsistent indentation.
MIT License
33 stars 1 forks source link

BUG: all of my code is highlighted in red #1

Open GhoulBoii opened 3 weeks ago

GhoulBoii commented 3 weeks ago

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

image

emileferreira commented 3 weeks ago

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 } })