nvim: after/ftplugin/rust: Remove format on save

Formatting on save tends to go completely wrong sometimes for some
reason. Just remove it.
This commit is contained in:
Sanchayan Maity 2023-03-21 17:21:47 +05:30
parent ab597f3f45
commit 7ca6a1c1b8
Signed by: sanchayanmaity
GPG Key ID: 6F6A0609C12038F3
1 changed files with 0 additions and 7 deletions

View File

@ -12,13 +12,6 @@ vim.keymap.set('n', 'cbd', ":Dispatch! cargo doc<CR>" , { noremap=true, bu
vim.keymap.set('n', 'cdD', ":Dispatch! cargo doc --open<CR>", { noremap=true, buffer=0 })
vim.keymap.set('n', 'cbu', ":Dispatch! cargo update<CR>" , { noremap=true, buffer=0 })
vim.api.nvim_create_autocmd({ "BufWritePre" }, {
buffer = 0,
callback = function()
vim.lsp.buf.format({async=true})
end,
})
vim.api.nvim_create_autocmd({ "BufReadPre", "BufWinEnter" }, {
pattern = { "*/git/checkouts/*", "*/toolchains/*", "*cargo/registry/*" },
callback = function()