nvim: after/ftplugin/rust: Do not add library & toolchain source to buffer list

This commit is contained in:
Sanchayan Maity 2023-01-15 12:09:50 +05:30
parent b249fdefcc
commit c378e0a811
Signed by: sanchayanmaity
GPG key ID: 6F6A0609C12038F3

View file

@ -32,3 +32,10 @@ vim.api.nvim_create_autocmd({ "BufWritePre" }, {
vim.lsp.buf.format({async=true})
end,
})
vim.api.nvim_create_autocmd({ "BufReadPre", "BufWinEnter" }, {
pattern = { "*/git/checkouts/*", "*/toolchains/*" },
callback = function()
vim.bo.buflisted = false
end,
})