diff --git a/lua/astrocommunity/search/nvim-hlslens/init.lua b/lua/astrocommunity/search/nvim-hlslens/init.lua index 41c894281..8a1ddd6eb 100644 --- a/lua/astrocommunity/search/nvim-hlslens/init.lua +++ b/lua/astrocommunity/search/nvim-hlslens/init.lua @@ -1,5 +1,6 @@ return { "kevinhwang91/nvim-hlslens", opts = {}, + event = "BufRead", init = function() vim.on_key(nil, vim.api.nvim_get_namespaces()["auto_hlsearch"]) end, }