diff --git a/nvim/.config/nvim/after/ftplugin/zig.lua b/nvim/.config/nvim/after/ftplugin/zig.lua index 24a2201..8aad3d4 100644 --- a/nvim/.config/nvim/after/ftplugin/zig.lua +++ b/nvim/.config/nvim/after/ftplugin/zig.lua @@ -2,3 +2,10 @@ local lsp_utils = require('lsp-utils') local zls_config = lsp_utils.zls_config() vim.lsp.start(zls_config) + +vim.api.nvim_create_autocmd({ "BufReadPre", "BufWinEnter" }, { + pattern = { "*/lib/zig/*" }, + callback = function() + vim.bo.buflisted = false + end, +})