From 12d163c5c2b05e85431f2deef5d9d59a8fd8dfc2 Mon Sep 17 00:00:00 2001 From: dundargoc Date: Fri, 13 Dec 2024 14:53:08 +0100 Subject: refactor: deprecate util.find_git_ancestor Work on https://github.com/neovim/nvim-lspconfig/issues/2079. --- lua/lspconfig/configs/htmx.lua | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'lua/lspconfig/configs/htmx.lua') diff --git a/lua/lspconfig/configs/htmx.lua b/lua/lspconfig/configs/htmx.lua index fe7e1de5..68d9d83f 100644 --- a/lua/lspconfig/configs/htmx.lua +++ b/lua/lspconfig/configs/htmx.lua @@ -1,5 +1,3 @@ -local util = require 'lspconfig.util' - return { default_config = { cmd = { 'htmx-lsp' }, @@ -53,7 +51,7 @@ return { }, single_file_support = true, root_dir = function(fname) - return util.find_git_ancestor(fname) + return vim.fs.dirname(vim.fs.find('.git', { path = fname, upward = true })[1]) end, }, docs = { -- cgit v1.2.3-70-g09d2