diff options
Diffstat (limited to 'nvim/lsp/unison.lua')
| -rwxr-xr-x | nvim/lsp/unison.lua | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/nvim/lsp/unison.lua b/nvim/lsp/unison.lua new file mode 100755 index 0000000..d4fb118 --- /dev/null +++ b/nvim/lsp/unison.lua @@ -0,0 +1,15 @@ +---@brief +--- +--- https://github.com/unisonweb/unison/blob/trunk/docs/language-server.markdown + +local util = require 'lspconfig.util' + +return { + cmd = { 'nc', 'localhost', os.getenv 'UNISON_LSP_PORT' or '5757' }, + filetypes = { 'unison' }, + root_dir = function(bufnr, on_dir) + local fname = vim.api.nvim_buf_get_name(bufnr) + on_dir(util.root_pattern('*.u')(fname)) + end, + settings = {}, +} |
