Update formatters and fix slow load bug with rustfmt

This commit is contained in:
Alex Selimov 2026-03-26 13:50:55 -04:00
parent 03f906b663
commit b2d372c538
6 changed files with 25 additions and 14 deletions

View file

@ -1,8 +1,5 @@
-- Formatting configuration
-- Set rustfmt command
vim.g["rustfmt_command"] = "rustfmt +nightly"
-- Commands to disable/enable formatting
require("conform").setup({
format_on_save = function(bufnr)
@ -31,4 +28,5 @@ vim.api.nvim_create_user_command("FormatEnable", function()
vim.g.disable_autoformat = false
end, {
desc = "Re-enable autoformat-on-save",
})
})