diff --git a/nvim/.config/nvim/after/ftplugin/rust.lua b/nvim/.config/nvim/after/ftplugin/rust.lua index ef89a4e..ed5308b 100644 --- a/nvim/.config/nvim/after/ftplugin/rust.lua +++ b/nvim/.config/nvim/after/ftplugin/rust.lua @@ -9,7 +9,7 @@ vim.keymap.set('n', 'cbu', ":Dispatch! cargo update" , { noremap=true, bu vim.keymap.set('n', ',r' , ":CargoReload" , { noremap=true, buffer=0 }) vim.api.nvim_create_autocmd({ "BufReadPre", "BufWinEnter" }, { - pattern = { "*/git/checkouts/*", "*/toolchains/*", "*cargo/registry/*" }, + pattern = { "*/git/checkouts/*", "*/toolchains/*", "*cargo/registry/*", "*target/*/build/*" }, callback = function() vim.bo.buflisted = false end,