Skip to content

Commit

Permalink
fix: search for go.mod up until home folder
Browse files Browse the repository at this point in the history
  • Loading branch information
fredrikaverpil committed Jul 8, 2024
1 parent b521556 commit bdf7488
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/neotest-golang/path.lua
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ function M.find_file_upwards(filename, start_path)
local scan = require("plenary.scandir")
local cwd = vim.fn.getcwd()
local found_filepath = nil
while start_path ~= cwd do
while start_path ~= vim.fn.expand("$HOME") do
local files = scan.scan_dir(
start_path,
{ search_pattern = filename, hidden = true, depth = 1 }
Expand Down

0 comments on commit bdf7488

Please sign in to comment.