nvim: after/ftplugin/rust: Do not add library & toolchain source to buffer list
This commit is contained in:
parent
b249fdefcc
commit
c378e0a811
1 changed files with 7 additions and 0 deletions
|
@ -32,3 +32,10 @@ vim.api.nvim_create_autocmd({ "BufWritePre" }, {
|
||||||
vim.lsp.buf.format({async=true})
|
vim.lsp.buf.format({async=true})
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
vim.api.nvim_create_autocmd({ "BufReadPre", "BufWinEnter" }, {
|
||||||
|
pattern = { "*/git/checkouts/*", "*/toolchains/*" },
|
||||||
|
callback = function()
|
||||||
|
vim.bo.buflisted = false
|
||||||
|
end,
|
||||||
|
})
|
||||||
|
|
Loading…
Reference in a new issue