aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
authorliam <liam@scalzulli.com>2025-04-05 11:59:53 -0400
committerGitHub <noreply@github.com>2025-04-05 08:59:53 -0700
commit83f376fad2802df221e50b20e9de1fa2391fc70d (patch)
tree56d545751c1eb1a8d621c5b4a6508ee518a8ee2e /lua
parentdocs: update configs.md (diff)
downloadnvim-lspconfig-83f376fad2802df221e50b20e9de1fa2391fc70d.tar
nvim-lspconfig-83f376fad2802df221e50b20e9de1fa2391fc70d.tar.gz
nvim-lspconfig-83f376fad2802df221e50b20e9de1fa2391fc70d.tar.bz2
nvim-lspconfig-83f376fad2802df221e50b20e9de1fa2391fc70d.tar.lz
nvim-lspconfig-83f376fad2802df221e50b20e9de1fa2391fc70d.tar.xz
nvim-lspconfig-83f376fad2802df221e50b20e9de1fa2391fc70d.tar.zst
nvim-lspconfig-83f376fad2802df221e50b20e9de1fa2391fc70d.zip
feat: "just" lsp #3655
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.
+]],
+ },
+}