27 lines
684 B
Lua
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
|