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