Notes on linter installation in linter config, re-enabling markdownlint
This commit is contained in:
parent
bba4fbbbb1
commit
43f63558c4
1 changed files with 9 additions and 1 deletions
|
@ -3,7 +3,15 @@ return {
|
||||||
event = { 'BufReadPre', 'BufNewFile' },
|
event = { 'BufReadPre', 'BufNewFile' },
|
||||||
config = function()
|
config = function()
|
||||||
local lint = require 'lint'
|
local lint = require 'lint'
|
||||||
lint.linters_by_ft = {}
|
|
||||||
|
-- These configurations require the tools to be installed on your system (in your path).
|
||||||
|
-- See: https://mason-registry.dev/registry/list for a simple, automated way to install them.
|
||||||
|
-- ...Perhaps configure these in [["./nvim-lspconfig.lua"]]?
|
||||||
|
-- See: ':help MasonInstall' and ':help Mason'
|
||||||
|
|
||||||
|
lint.linters_by_ft = {
|
||||||
|
markdown = { 'markdownlint' },
|
||||||
|
}
|
||||||
|
|
||||||
-- To allow other plugins to add linters to require('lint').linters_by_ft,
|
-- To allow other plugins to add linters to require('lint').linters_by_ft,
|
||||||
-- instead set linters_by_ft like this:
|
-- instead set linters_by_ft like this:
|
||||||
|
|
Loading…
Reference in a new issue