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" },
},
format_on_save = function(bufnr)
local filetype = vim.bo[bufnr].filetype
if filetype == "javascript" then
return nil
end
return {
timeout_ms = 500,
lsp_fallback = true,
}
end,
-- format_on_save = function(bufnr)
-- local filetype = vim.bo[bufnr].filetype
-- if filetype == "javascript" then
-- return nil
-- end
-- if filetype == "vue" then
-- return nil
-- end
-- if filetype == "less" then
-- return nil
-- end
-- if filetype == "php" then
-- return nil
-- end
--
-- return {
-- timeout_ms = 500,
-- lsp_fallback = true,
-- }
-- end,
},
}