nvim: Add automatic mason tool installation

Using mason-tool-installer we ensure everything is installed correctly.
Need to improve the collection of things to install. Currently we just
do everything in lsp configuration file, even the non-lsp things
(formatters/linters) which should be sourced where they belong not
in that file.
This commit is contained in:
Marty Oehme 2023-12-08 18:35:10 +01:00
parent ab06ef922b
commit eec90ad7e2
Signed by: Marty
GPG key ID: EDBF2ED917B2EF6A
3 changed files with 34 additions and 12 deletions

View file

@ -55,6 +55,9 @@ return {
"williamboman/mason-lspconfig.nvim",
cmd = { "LspInstall", "LspUninstall" },
},
{
"WhoIsSethDaniel/mason-tool-installer.nvim",
},
},
event = "BufReadPost",
config = function()
@ -91,7 +94,7 @@ return {
end
end
end
per_cmd("markdownlint", { linters.markdown })
per_cmd("markdownlint", { linters.markdown, linters.quarto })
per_cmd("vale", { linters.markdown, linters.text, linters.quarto })
per_cmd("shellcheck", { linters.sh, linters.bash })
per_cmd("eslint_d", {