Skip to content

Commit b7fd42e

Browse files
committed
feat(pico8_ls): do not use lspconfig.util
1 parent 13497cb commit b7fd42e

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

lsp/pico8_ls.lua

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,13 @@
44
---
55
--- Full language support for the PICO-8 dialect of Lua.
66

7-
local util = require 'lspconfig.util'
8-
97
return {
108
cmd = { 'pico8-ls', '--stdio' },
119
filetypes = { 'p8' },
1210
root_dir = function(bufnr, on_dir)
13-
local fname = vim.api.nvim_buf_get_name(bufnr)
14-
on_dir(util.root_pattern('*.p8')(fname))
11+
on_dir(vim.fs.root(bufnr, function(name, _)
12+
return vim.glob.to_lpeg('*.p8'):match(name) ~= nil
13+
end))
1514
end,
1615
settings = {},
1716
}

0 commit comments

Comments
 (0)