Skip to content

Commit

Permalink
fix: remove the deprecated code
Browse files Browse the repository at this point in the history
  • Loading branch information
fang2hou committed Jan 22, 2025
1 parent 48d6586 commit 04b89c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/neoconf/util.lua
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ function M.root_pattern(...)
end

function M.find_git_ancestor(...)
return require("lspconfig.util").find_git_ancestor(...)
return vim.fs.dirname(vim.fs.find(".git", { path = startpath, upward = true })[1])
end

function M.has_lspconfig(server)
Expand Down

0 comments on commit 04b89c9

Please sign in to comment.