Skip to content

Commit

Permalink
feat: add alloy language server (#3560)
Browse files Browse the repository at this point in the history
  • Loading branch information
dkasak authored Jan 14, 2025
1 parent 355c565 commit a14a65d
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions lua/lspconfig/configs/alloy_ls.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
return {
default_config = {
cmd = { 'alloy', 'lsp' },
filetypes = { 'alloy' },
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/AlloyTools/org.alloytools.alloy
Alloy is a formal specification language for describing structures and a tool for exploring them.
]],
},
}

0 comments on commit a14a65d

Please sign in to comment.