nvim: after/ftplugin/rust: Do not add cargo registry to buffer list

This commit is contained in:
Sanchayan Maity 2023-02-10 18:42:57 +05:30
parent 56f81f598e
commit 406570312f
Signed by: sanchayanmaity
GPG key ID: 6F6A0609C12038F3

View file

@ -34,7 +34,7 @@ vim.api.nvim_create_autocmd({ "BufWritePre" }, {
})
vim.api.nvim_create_autocmd({ "BufReadPre", "BufWinEnter" }, {
pattern = { "*/git/checkouts/*", "*/toolchains/*" },
pattern = { "*/git/checkouts/*", "*/toolchains/*", "*cargo/registry/*" },
callback = function()
vim.bo.buflisted = false
end,