From b7ef29a8886a57aadb787807a7c6cf74c1f0ed3a Mon Sep 17 00:00:00 2001 From: anand Date: Wed, 17 Dec 2025 15:57:55 +0530 Subject: Nixos --- nvim/lsp/unison.lua | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 nvim/lsp/unison.lua (limited to 'nvim/lsp/unison.lua') 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 = {}, +} -- cgit v1.2.3