From 8662acc7e889685f62459853fc8b915920893f15 Mon Sep 17 00:00:00 2001 From: Sanchayan Maity Date: Wed, 6 Nov 2024 15:52:46 +0530 Subject: [PATCH] nvim: after/ftplugin/zig: Do not add Zig library to buffer list --- nvim/.config/nvim/after/ftplugin/zig.lua | 7 +++++++ 1 file changed, 7 insertions(+) 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, +})