Browse Source

feat(modules): Added markdown language module.

my-config
connorgmeean 3 years ago
parent
commit
fd5194cf78
  1. 32
      lua/doom/modules/langs/markdown/init.lua

32
lua/doom/modules/langs/markdown/init.lua

@ -0,0 +1,32 @@
local markdown = {}
markdown.settings = {
}
markdown.autocmds = {
{
"FileType",
"markdown",
function()
local langs_utils = require("doom.modules.langs.utils")
langs_utils.use_lsp("remark_ls")
vim.defer_fn(function()
require("nvim-treesitter.install").ensure_installed("markdown")
end, 0)
-- Setup null-ls
if doom.modules.linter then
local null_ls = require("null-ls")
langs_utils.use_null_ls_source({
null_ls.builtins.diagnostics.markdownlint,
})
end
end,
once = true,
},
}
return markdown
Loading…
Cancel
Save