diff --git a/nvim/.config/nvim/after/ftplugin/c.lua b/nvim/.config/nvim/after/ftplugin/c.lua index 22b3704..b6c651d 100644 --- a/nvim/.config/nvim/after/ftplugin/c.lua +++ b/nvim/.config/nvim/after/ftplugin/c.lua @@ -7,3 +7,10 @@ vim.bo.makeprg = 'meson compile -C build' vim.keymap.set('n', 'gh', ":ClangdSwitchSourceHeader", { noremap=true, buffer=0 }) vim.keymap.set('n', 'gq', ":!gst-indent %" , { noremap=true, buffer=0 }) + +vim.api.nvim_create_autocmd({ "BufReadPre", "BufWinEnter" }, { + pattern = { "*/usr/include/*" }, + callback = function() + vim.bo.buflisted = false + end, +})