nvim: after/ftplugin/zig: Do not add Zig library to buffer list

This commit is contained in:
Sanchayan Maity 2024-11-06 15:52:46 +05:30
parent 41f307d8a6
commit 8662acc7e8
Signed by: sanchayanmaity
GPG key ID: 6F6A0609C12038F3

View file

@ -2,3 +2,10 @@ local lsp_utils = require('lsp-utils')
local zls_config = lsp_utils.zls_config() local zls_config = lsp_utils.zls_config()
vim.lsp.start(zls_config) vim.lsp.start(zls_config)
vim.api.nvim_create_autocmd({ "BufReadPre", "BufWinEnter" }, {
pattern = { "*/lib/zig/*" },
callback = function()
vim.bo.buflisted = false
end,
})