We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
lspconfig.util
1 parent a42bb6f commit 39f298bCopy full SHA for 39f298b
1 file changed
lsp/idris2_lsp.lua
@@ -29,13 +29,12 @@
29
--- latest commit on the `master` branch, and set a reminder to check the Idris2-Lsp
30
--- repo for the release of a compatible versioned branch.
31
32
-local util = require 'lspconfig.util'
33
-
34
return {
35
cmd = { 'idris2-lsp' },
36
filetypes = { 'idris2' },
37
root_dir = function(bufnr, on_dir)
38
- local fname = vim.api.nvim_buf_get_name(bufnr)
39
- on_dir(util.root_pattern '*.ipkg'(fname))
+ on_dir(vim.fs.root(bufnr, function(name, _)
+ return vim.glob.to_lpeg('*.ipkg'):match(name) ~= nil
+ end))
40
end,
41
}
0 commit comments