From 7c7dabeec2ca4f632bb9ccb805846454086107e4 Mon Sep 17 00:00:00 2001 From: histalek Date: Thu, 15 Dec 2022 13:33:30 +0100 Subject: [PATCH] nvim: Disable prettier yaml formatting --- .config/nvim/lua/plugins/lsp/null-ls.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.config/nvim/lua/plugins/lsp/null-ls.lua b/.config/nvim/lua/plugins/lsp/null-ls.lua index 9019d1d..9b268a9 100644 --- a/.config/nvim/lua/plugins/lsp/null-ls.lua +++ b/.config/nvim/lua/plugins/lsp/null-ls.lua @@ -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)