1

Neovim: Update conform config after update

This commit is contained in:
2024-10-13 14:57:28 +02:00
parent 4e4dd67185
commit c9ce032617

View File

@ -518,24 +518,29 @@ in {
h = ["clang-format"]; h = ["clang-format"];
cpp = ["clang-format"]; cpp = ["clang-format"];
hpp = ["clang-format"]; hpp = ["clang-format"];
css = [["prettierd" "prettier"]]; css = ["prettierd" "prettier"];
html = [["prettierd" "prettier"]]; html = ["prettierd" "prettier"];
java = ["google-java-format"]; java = ["google-java-format"];
javascript = [["prettierd" "prettier"]]; javascript = ["prettierd" "prettier"];
lua = ["stylua"]; lua = ["stylua"];
markdown = [["prettierd" "prettier"]]; markdown = ["prettierd" "prettier"];
nix = ["alejandra"]; nix = ["alejandra"];
python = ["black"]; python = ["black"];
rust = ["rustfmt"]; rust = ["rustfmt"];
}; };
default_format_opts = {
lsp_format = "fallback";
stop_after_first = true;
};
format_on_save.__raw = '' format_on_save.__raw = ''
function(bufnr) function(bufnr)
-- Disable with a global or buffer-local variable -- Disable with a global or buffer-local variable
if vim.g.disable_autoformat then if vim.g.disable_autoformat then
return return
end end
return { timeout_ms = 500, lsp_fallback = true } return { timeout_ms = 500, lsp_format = "fallback", }
end end
''; '';
}; };