aboutsummaryrefslogtreecommitdiffstats
path: root/lsp/agda_ls.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lsp/agda_ls.lua')
-rw-r--r--lsp/agda_ls.lua15
1 files changed, 15 insertions, 0 deletions
diff --git a/lsp/agda_ls.lua b/lsp/agda_ls.lua
new file mode 100644
index 00000000..69de5090
--- /dev/null
+++ b/lsp/agda_ls.lua
@@ -0,0 +1,15 @@
+local util = require 'lspconfig.util'
+
+---@brief
+---
+---https://github.com/agda/agda-language-server
+--
+-- Language Server for Agda.
+return {
+ cmd = { 'als' },
+ filetypes = { 'agda' },
+ root_dir = function(bufnr, on_dir)
+ local fname = vim.api.nvim_buf_get_name(bufnr)
+ on_dir(util.root_pattern('.git', '*.agda-lib')(fname))
+ end,
+}