1
0
Fork 1
Dotfiles_nvim/lua/toolchain/text.lua
2024-11-23 17:55:23 +01:00

27 lines
684 B
Lua

local T = require('toolchain')
local M = {}
function M.setup()
T.add_highlighter_autoinstalls('markdown')
T.add_null_ls_module(function(null_ls)
return {
-- Actions
null_ls.builtins.code_actions.proselint,
-- Diagnostics
null_ls.builtins.diagnostics.alex,
null_ls.builtins.diagnostics.trail_space,
-- Formatter
null_ls.builtins.diagnostics.markdownlint,
}
end)
T.add_lsp_autoinstalls('marksman')
T.add_lsps(function(lspconfig, capabilities)
local config = { capabilities = capabilities }
lspconfig.marksman.setup(config)
end)
end
return M