diff options
| author | dundargoc <gocdundar@gmail.com> | 2024-12-13 14:53:08 +0100 |
|---|---|---|
| committer | dundargoc <33953936+dundargoc@users.noreply.github.com> | 2024-12-14 17:24:12 +0100 |
| commit | 12d163c5c2b05e85431f2deef5d9d59a8fd8dfc2 (patch) | |
| tree | 0bfbfbd378ba61cde77f9132b6d0c3570805eb88 /lua/lspconfig/configs/htmx.lua | |
| parent | docs: how to get package.json parent dir #3506 (diff) | |
| download | nvim-lspconfig-12d163c5c2b05e85431f2deef5d9d59a8fd8dfc2.tar nvim-lspconfig-12d163c5c2b05e85431f2deef5d9d59a8fd8dfc2.tar.gz nvim-lspconfig-12d163c5c2b05e85431f2deef5d9d59a8fd8dfc2.tar.bz2 nvim-lspconfig-12d163c5c2b05e85431f2deef5d9d59a8fd8dfc2.tar.lz nvim-lspconfig-12d163c5c2b05e85431f2deef5d9d59a8fd8dfc2.tar.xz nvim-lspconfig-12d163c5c2b05e85431f2deef5d9d59a8fd8dfc2.tar.zst nvim-lspconfig-12d163c5c2b05e85431f2deef5d9d59a8fd8dfc2.zip | |
refactor: deprecate util.find_git_ancestor
Work on https://github.com/neovim/nvim-lspconfig/issues/2079.
Diffstat (limited to 'lua/lspconfig/configs/htmx.lua')
| -rw-r--r-- | lua/lspconfig/configs/htmx.lua | 4 |
1 files changed, 1 insertions, 3 deletions
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 = { |
