aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua')
-rw-r--r--lua/lspconfig/configs/just.lua17
1 files changed, 17 insertions, 0 deletions
diff --git a/lua/lspconfig/configs/just.lua b/lua/lspconfig/configs/just.lua
new file mode 100644
index 00000000..4b2fb70e
--- /dev/null
+++ b/lua/lspconfig/configs/just.lua
@@ -0,0 +1,17 @@
+return {
+ default_config = {
+ cmd = { 'just-lsp' },
+ filetypes = { 'just' },
+ root_dir = function(fname)
+ return vim.fs.dirname(vim.fs.find('.git', { path = fname, upward = true })[1])
+ end,
+ single_file_support = true,
+ },
+ docs = {
+ description = [[
+https://github.com/terror/just-lsp
+
+`just-lsp` is an LSP for just built on top of the tree-sitter-just parser.
+]],
+ },
+}