fix(nvim-conform): turn off auto format on save

This commit is contained in:
Oliver
2025-09-10 14:28:00 +02:00
parent 98f8c886d6
commit b4c8cc7fe0

View File

@@ -16,16 +16,25 @@ return {
go = { "goimports", "gofumpt" }, go = { "goimports", "gofumpt" },
}, },
format_on_save = function(bufnr) -- format_on_save = function(bufnr)
local filetype = vim.bo[bufnr].filetype -- local filetype = vim.bo[bufnr].filetype
if filetype == "javascript" then -- if filetype == "javascript" then
return nil -- return nil
end -- end
-- if filetype == "vue" then
return { -- return nil
timeout_ms = 500, -- end
lsp_fallback = true, -- if filetype == "less" then
} -- return nil
end, -- end
-- if filetype == "php" then
-- return nil
-- end
--
-- return {
-- timeout_ms = 500,
-- lsp_fallback = true,
-- }
-- end,
}, },
} }