fix(nvim-conform): turn off auto format on save
This commit is contained in:
@@ -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,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user