Update formatters and fix slow load bug with rustfmt
This commit is contained in:
parent
03f906b663
commit
b2d372c538
6 changed files with 25 additions and 14 deletions
|
|
@ -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",
|
||||
})
|
||||
})
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue