Update things

This commit is contained in:
2024-07-24 22:57:01 +02:00
parent ed11820bff
commit a41935a30e
8 changed files with 98 additions and 91 deletions
+3 -1
View File
@@ -263,13 +263,14 @@ return {
{
"<leader>e",
function()
require("conform").format({ async = true, lsp_fallback = true --[["always"--]] })
require("conform").format()
end,
desc = "Format",
mode = { "n", "v" },
},
},
opts = {
default_format_opts = { async = true, lsp_format = "fallback" },
formatters_by_ft = {
python = function(bufnr)
if require("conform").get_formatter_info("ruff_format", bufnr).available then
@@ -288,6 +289,7 @@ return {
sql = { "pg_format" },
cs = { "csharpier" },
nix = { "alejandra" },
-- ["_"] = { "injected", lsp_format = "last" },
["*"] = { "injected" }
},
formatters = {