1
0
Fork 1
Dotfiles_nvim/lua/toolchain/text.lua

28 lines
684 B
Lua
Raw Normal View History

2024-09-07 18:39:22 +00:00
local T = require('toolchain')
local M = {}
2024-09-07 23:50:39 +00:00
function M.setup()
2024-09-07 18:39:22 +00:00
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