nvim: Disable prettier yaml formatting

This commit is contained in:
histalek 2022-12-15 13:33:30 +01:00
parent 3e05007045
commit 7c7dabeec2
No known key found for this signature in database
GPG key ID: ED1D6449704FDE03

View file

@ -10,7 +10,9 @@ local augroup = vim.api.nvim_create_augroup("LspFormatting", {})
null_ls.setup({
sources = {
formatting.prettier,
formatting.prettier.with({
disabled_filetypes = { "yaml" },
}),
formatting.stylua,
diagnostics.eslint_d.with({
condition = function(utils)