Add marksman and mdformat for Markdown linting and formatting support

This commit is contained in:
Daniel McKnight 2025-05-21 19:44:41 -07:00
parent a541a5eb51
commit 27fc7af6b2
3 changed files with 6 additions and 3 deletions

View file

@ -15,10 +15,11 @@ return {
"lua_ls", "lua_ls",
"bashls", "bashls",
"dockerls", "dockerls",
-- "gh-actions-language-server", --"gh-actions-language-server",
"helm_ls", "helm_ls",
"jsonls", "jsonls",
"nginx_language_server", "marksman",
"nginx_language_server",
"ruff", "ruff",
"yamlls", "yamlls",
}, },

View file

@ -5,7 +5,8 @@ return {
null_ls.setup({ null_ls.setup({
sources = { sources = {
null_ls.builtins.formatting.stylua, null_ls.builtins.formatting.stylua,
}, null_ls.builtins.formatting.mdformat,
},
}) })
vim.keymap.set("n", "<leader>af", vim.lsp.buf.format, {desc="Auto-Format File"}) vim.keymap.set("n", "<leader>af", vim.lsp.buf.format, {desc="Auto-Format File"})
end, end,

View file

@ -9,6 +9,7 @@ return {
lspconfig.helm_ls.setup({}) lspconfig.helm_ls.setup({})
lspconfig.jsonls.setup({}) lspconfig.jsonls.setup({})
lspconfig.nginx_language_server.setup({}) lspconfig.nginx_language_server.setup({})
lspconfig.marksman.setup({})
lspconfig.ruff.setup({}) lspconfig.ruff.setup({})
lspconfig.yamlls.setup({}) lspconfig.yamlls.setup({})
vim.keymap.set("n", "<leader>d", vim.lsp.buf.hover, { desc = "Show Docstring" }) vim.keymap.set("n", "<leader>d", vim.lsp.buf.hover, { desc = "Show Docstring" })