From 43f63558c47a8ea8b81b359dc11b2b3509670ae9 Mon Sep 17 00:00:00 2001 From: Imbus <> Date: Sat, 10 Aug 2024 07:47:35 +0200 Subject: [PATCH] Notes on linter installation in linter config, re-enabling markdownlint --- lua/plugins/lint.lua | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/lua/plugins/lint.lua b/lua/plugins/lint.lua index 0488593..7ce78cf 100644 --- a/lua/plugins/lint.lua +++ b/lua/plugins/lint.lua @@ -3,7 +3,15 @@ return { event = { 'BufReadPre', 'BufNewFile' }, config = function() 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, -- instead set linters_by_ft like this: