This commit is contained in:
Dominic DiTaranto 2025-11-15 20:26:26 -05:00
parent 63270ea85c
commit 95ec24012d

View file

@ -974,7 +974,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, pyright = true, python = true } local disable_filetypes = { c = true, cpp = true, pyright = true, python = true, html = true }
local lsp_format_opt local lsp_format_opt
if disable_filetypes[vim.bo[bufnr].filetype] then if disable_filetypes[vim.bo[bufnr].filetype] then
lsp_format_opt = "never" lsp_format_opt = "never"
@ -994,7 +994,7 @@ require("lazy").setup({
-- python = { "isort", "black" }, -- python = { "isort", "black" },
-- --
-- You can use 'stop_after_first' to run the first available formatter from the list -- You can use 'stop_after_first' to run the first available formatter from the list
-- javascript = { "prettierd", "prettier", stop_after_first = true }, javascript = { "prettierd", "prettier", stop_after_first = true },
}, },
}, },
}, },