diff --git a/nvim/.config/nvim/after/ftplugin/rust.lua b/nvim/.config/nvim/after/ftplugin/rust.lua index 6f8fca5..b8be7c9 100644 --- a/nvim/.config/nvim/after/ftplugin/rust.lua +++ b/nvim/.config/nvim/after/ftplugin/rust.lua @@ -12,13 +12,6 @@ vim.keymap.set('n', 'cbd', ":Dispatch! cargo doc" , { noremap=true, bu vim.keymap.set('n', 'cdD', ":Dispatch! cargo doc --open", { noremap=true, buffer=0 }) vim.keymap.set('n', 'cbu', ":Dispatch! cargo update" , { 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()