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 e429c34 commit 45ae270Copy full SHA for 45ae270
lsp/unison.lua
@@ -2,14 +2,13 @@
2
---
3
--- https://github.com/unisonweb/unison/blob/trunk/docs/language-server.markdown
4
5
-local util = require 'lspconfig.util'
6
-
7
return {
8
cmd = { 'nc', 'localhost', os.getenv 'UNISON_LSP_PORT' or '5757' },
9
filetypes = { 'unison' },
10
root_dir = function(bufnr, on_dir)
11
- local fname = vim.api.nvim_buf_get_name(bufnr)
12
- on_dir(util.root_pattern('*.u')(fname))
+ on_dir(vim.fs.root(bufnr, function(name, _)
+ return vim.glob.to_lpeg('*.u'):match(name) ~= nil
+ end))
13
end,
14
settings = {},
15
}
0 commit comments