mfussenegger / nvim-lint

An asynchronous linter plugin for Neovim complementary to the built-in Language Server Protocol support.
GNU General Public License v3.0
1.76k stars 191 forks source link

how to add the hl `DiagnosticUnnecessary` to unused var or package in ruff #573

Open ShIRannx opened 2 months ago

ShIRannx commented 2 months ago

pyright like:

image

nvim-lint using ruff like:

image

seem, the pyright added an extra hl group DiagnosticUnnecessary to the unused var or package word. how to i do that with nvim-lint?