From bda73785ccc016952eec1e18988a6a6740604220 Mon Sep 17 00:00:00 2001 From: Ivar Fatland Date: Wed, 2 Sep 2026 12:44:10 +0200 Subject: [PATCH] fix auto select compiler bug --- nvim/.config/nvim/init.lua | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/nvim/.config/nvim/init.lua b/nvim/.config/nvim/init.lua index bb5d02e..255da62 100644 --- a/nvim/.config/nvim/init.lua +++ b/nvim/.config/nvim/init.lua @@ -280,8 +280,7 @@ do return vim.fn.globpath(dir, glob_pattern, false, false, false) ~= '' end - local all_folders_till_root = nil - do + local all_folders_till_root = function() local cwd = vim.fn.getcwd() local folders = {cwd} -- array of all folders from cwd to root for dir in vim.fs.parents(cwd) do @@ -304,11 +303,7 @@ do return i, f end - ---return iterator starting from cwd and going upwards until the project - ---root is found by looking for the .git folder. - all_folders_till_root = function() - return iter, nil, 0 - end + return iter, nil, 0 end ---@param glob_pattern string