From f59e4faa370a89bddbdc73e9e38df9fe21fc3918 Mon Sep 17 00:00:00 2001 From: "Alexandre Cavalheiro S. Tiago da Silva" Date: Thu, 24 Oct 2024 22:43:52 -0300 Subject: [PATCH] fix(neovim): disable clang_format in c# files --- modules/home-manager/programs/neovim/lua/plugins/none-ls.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/home-manager/programs/neovim/lua/plugins/none-ls.lua b/modules/home-manager/programs/neovim/lua/plugins/none-ls.lua index 824f270..25dba6c 100644 --- a/modules/home-manager/programs/neovim/lua/plugins/none-ls.lua +++ b/modules/home-manager/programs/neovim/lua/plugins/none-ls.lua @@ -46,7 +46,9 @@ return { -- Set a formatter require("none-ls.diagnostics.flake8"), require("none-ls.formatting.ruff"), - null_ls.builtins.formatting.clang_format, + null_ls.builtins.formatting.clang_format.with({ + disabled_filetypes = { "cs" }, + }), null_ls.builtins.formatting.csharpier, null_ls.builtins.formatting.nixfmt, null_ls.builtins.formatting.stylua,