We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
lspconfig.util
1 parent 13497cb commit b7fd42eCopy full SHA for b7fd42e
lsp/pico8_ls.lua
@@ -4,14 +4,13 @@
4
---
5
--- Full language support for the PICO-8 dialect of Lua.
6
7
-local util = require 'lspconfig.util'
8
-
9
return {
10
cmd = { 'pico8-ls', '--stdio' },
11
filetypes = { 'p8' },
12
root_dir = function(bufnr, on_dir)
13
- local fname = vim.api.nvim_buf_get_name(bufnr)
14
- on_dir(util.root_pattern('*.p8')(fname))
+ on_dir(vim.fs.root(bufnr, function(name, _)
+ return vim.glob.to_lpeg('*.p8'):match(name) ~= nil
+ end))
15
end,
16
settings = {},
17
}
0 commit comments