@@ -33,7 +33,6 @@ git clone \
3333- If using [ vim-plug] [ 3 ] : ` Plug 'mfussenegger/nvim-lint' `
3434- If using [ packer.nvim] [ 4 ] : ` use 'mfussenegger/nvim-lint' `
3535
36-
3736## Usage
3837
3938Configure the linters you want to run per file type. For example:
@@ -52,7 +51,6 @@ will be picked up in that buffer. This is useful for linters like
5251[ actionlint] [ actionlint ] in combination with ` vim.filetype ` patterns like
5352` [".*/.github/workflows/.*%.yml"] = "yaml.ghaction", `
5453
55-
5654Then setup a ` autocmd ` to trigger linting. For example:
5755
5856``` vimL
@@ -80,11 +78,9 @@ Some linters require a file to be saved to disk, others support linting `stdin`
8078input. For such linters you could also define a more aggressive ` autocmd ` , for
8179example on the ` InsertLeave ` or ` TextChanged ` events.
8280
83-
8481If you want to customize how the diagnostics are displayed, read `: help
8582vim.diagnostic.config`.
8683
87-
8884## Available Linters
8985
9086There is a generic linter called ` compiler ` that uses the ` makeprg ` and
@@ -195,6 +191,7 @@ Other dedicated linters that are built-in are:
195191| [ quick-lint-js] [ quick-lint-js ] | ` quick-lint-js ` |
196192| [ redocly] [ redocly ] | ` redolcy ` |
197193| [ regal] [ regal ] | ` regal ` |
194+ | [ resharper] [ resharper ] | ` resharper ` |
198195| [ Revive] [ 14 ] | ` revive ` |
199196| [ rflint] [ rflint ] | ` rflint ` |
200197| [ robocop] [ robocop ] | ` robocop ` |
@@ -249,7 +246,6 @@ Other dedicated linters that are built-in are:
249246You can register custom linters by adding them to the ` linters ` table, but
250247please consider contributing a linter if it is missing.
251248
252-
253249``` lua
254250require (' lint' ).linters .your_linter_name = {
255251 cmd = ' linter_cmd' ,
@@ -273,7 +269,6 @@ generate some of the properties.
273269- ` bufnr `
274270- ` linter_cwd `
275271
276-
277272The ` output ` is the output generated by the linter command.
278273The function must return a list of diagnostics as specified in `: help
279274diagnostic-structure`.
@@ -300,7 +295,6 @@ parser = require('lint.parser').from_errorformat(errorformat)
300295
301296The function takes two arguments: ` errorformat ` and ` skeleton ` (optional).
302297
303-
304298### from_pattern
305299
306300Creates a parser function from a pattern.
@@ -319,7 +313,6 @@ The function allows to parse the linter's output using a pattern which can be ei
319313 from the linter output and must return a string array with the matches. The
320314 array should be empty if there was no match.
321315
322-
323316### groups
324317
325318The groups specify the result format of the pattern.
@@ -348,7 +341,7 @@ The captures in the pattern correspond to the group at the same position.
348341
349342A mapping from severity codes to diagnostic codes
350343
351- ``` lua
344+ ``` lua
352345default_severity = {
353346[' error' ] = vim .diagnostic .severity .ERROR ,
354347[' warning' ] = vim .diagnostic .severity .WARN ,
@@ -374,7 +367,6 @@ Additional options
374367- ` end_col_offset ` : offset added to ` end_col ` . Defaults to ` -1 ` , assuming
375368 that the end-column position is exclusive.
376369
377-
378370## Customize built-in linters
379371
380372You can import a linter and modify its properties. An example:
@@ -400,7 +392,6 @@ lint.linters.cspell = require("lint.util").wrap(lint.linters.cspell, function(di
400392end )
401393```
402394
403-
404395## Display configuration
405396
406397See ` :help vim.diagnostic.config ` .
@@ -413,7 +404,6 @@ local ns = require("lint").get_namespace("my_linter_name")
413404vim .diagnostic .config ({ virtual_text = true }, ns )
414405```
415406
416-
417407## Get the current running linters for your buffer
418408
419409You can see which linters are running with ` require("lint").get_running() ` .
@@ -429,17 +419,14 @@ local lint_progress = function()
429419end
430420```
431421
432-
433422## Alternatives
434423
435424- [ Ale] [ 1 ]
436425- [ efm-langserver] [ 6 ]
437426- [ diagnostic-languageserver] [ 7 ]
438427
439-
440428## Development ☢️
441429
442-
443430### Run tests
444431
445432Running tests requires [ busted] [ busted ] .
@@ -607,3 +594,4 @@ busted tests/
607594[ twig-cs-fixer ] : https://github.com/VincentLanglet/Twig-CS-Fixer
608595[ fortitude ] : https://github.com/PlasmaFAIR/fortitude
609596[ redocly ] : https://redocly.com/docs/cli/commands/lint
597+ [ resharper ] : https://www.jetbrains.com/help/resharper/ReSharper_Command_Line_Tools.html
0 commit comments