markdownpreview, conform settings

This commit is contained in:
Alexander Muszynski
2024-07-27 08:05:15 -04:00
parent 28daebf552
commit 978ff5d6d9
2 changed files with 14 additions and 3 deletions
+3 -2
View File
@@ -669,7 +669,7 @@ require('lazy').setup({
-- Disable "format_on_save lsp_fallback" for languages that don't -- Disable "format_on_save lsp_fallback" for languages that don't
-- have a well standardized coding style. You can add additional -- have a well standardized coding style. You can add additional
-- languages here or re-enable it for the disabled ones. -- languages here or re-enable it for the disabled ones.
local disable_filetypes = { c = true, cpp = true } local disable_filetypes = { c = true, cpp = true, typescript = true, javascript = true }
return { return {
timeout_ms = 500, timeout_ms = 500,
lsp_fallback = not disable_filetypes[vim.bo[bufnr].filetype], lsp_fallback = not disable_filetypes[vim.bo[bufnr].filetype],
@@ -682,8 +682,9 @@ require('lazy').setup({
-- --
-- You can use a sub-list to tell conform to run *until* a formatter -- You can use a sub-list to tell conform to run *until* a formatter
-- is found. -- is found.
markdown = { 'markdownlint', 'marksman' },
javascript = { { 'prettierd', 'prettier' } }, javascript = { { 'prettierd', 'prettier' } },
typescript = { { 'prettierd', 'prettier' } }, typescript = { { 'eslint', 'prettierd', 'prettier' } },
typescriptreact = { { 'prettierd', 'prettier' } }, typescriptreact = { { 'prettierd', 'prettier' } },
}, },
}, },
+11 -1
View File
@@ -2,4 +2,14 @@
-- I promise not to create any merge conflicts in this directory :) -- I promise not to create any merge conflicts in this directory :)
-- --
-- See the kickstart.nvim README for more information -- See the kickstart.nvim README for more information
return {} return {
{
'iamcco/markdown-preview.nvim',
cmd = { 'MarkdownPreviewToggle', 'MarkdownPreview', 'MarkdownPreviewStop' },
build = 'cd app && yarn install',
init = function()
vim.g.mkdp_filetypes = { 'markdown' }
end,
ft = { 'markdown' },
},
}