From 293667503b1658fc8d932db6d3cd460765373a3d Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Tue, 3 Oct 2023 01:29:30 -0500 Subject: [PATCH] perf(nvim): improve neovim perf for heirline MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Do not call a function to check hlsearch 🤦 --- dots/.config/nvim/lua/plugins/configs/heirline.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dots/.config/nvim/lua/plugins/configs/heirline.lua b/dots/.config/nvim/lua/plugins/configs/heirline.lua index 6405cf7a..5f83abb6 100644 --- a/dots/.config/nvim/lua/plugins/configs/heirline.lua +++ b/dots/.config/nvim/lua/plugins/configs/heirline.lua @@ -776,7 +776,7 @@ return { VimMode, { condition = function() - return #vim.fn.searchcount() ~= 0 + return vim.v.hlsearch > 0 end, { provider = " " .. seps.full.left,