Skip to content

Commit 39f298b

Browse files
committed
feat(idris2_lsp): do not use lspconfig.util
1 parent a42bb6f commit 39f298b

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

lsp/idris2_lsp.lua

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,12 @@
2929
--- latest commit on the `master` branch, and set a reminder to check the Idris2-Lsp
3030
--- repo for the release of a compatible versioned branch.
3131

32-
local util = require 'lspconfig.util'
33-
3432
return {
3533
cmd = { 'idris2-lsp' },
3634
filetypes = { 'idris2' },
3735
root_dir = function(bufnr, on_dir)
38-
local fname = vim.api.nvim_buf_get_name(bufnr)
39-
on_dir(util.root_pattern '*.ipkg'(fname))
36+
on_dir(vim.fs.root(bufnr, function(name, _)
37+
return vim.glob.to_lpeg('*.ipkg'):match(name) ~= nil
38+
end))
4039
end,
4140
}

0 commit comments

Comments
 (0)