diff options
| author | Denis Kasak <dkasak@termina.org.uk> | 2025-01-14 13:47:48 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-01-14 20:47:48 +0800 |
| commit | a14a65d7574fe139ab954e704a5e866a4f0d1c69 (patch) | |
| tree | 03911f6f4c3852e360c49c5a487221d38b00d243 /lua | |
| parent | docs: update configs.md (diff) | |
| download | nvim-lspconfig-a14a65d7574fe139ab954e704a5e866a4f0d1c69.tar nvim-lspconfig-a14a65d7574fe139ab954e704a5e866a4f0d1c69.tar.gz nvim-lspconfig-a14a65d7574fe139ab954e704a5e866a4f0d1c69.tar.bz2 nvim-lspconfig-a14a65d7574fe139ab954e704a5e866a4f0d1c69.tar.lz nvim-lspconfig-a14a65d7574fe139ab954e704a5e866a4f0d1c69.tar.xz nvim-lspconfig-a14a65d7574fe139ab954e704a5e866a4f0d1c69.tar.zst nvim-lspconfig-a14a65d7574fe139ab954e704a5e866a4f0d1c69.zip | |
feat: add alloy language server (#3560)
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/lspconfig/configs/alloy_ls.lua | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/lua/lspconfig/configs/alloy_ls.lua b/lua/lspconfig/configs/alloy_ls.lua new file mode 100644 index 00000000..4a9a06e2 --- /dev/null +++ b/lua/lspconfig/configs/alloy_ls.lua @@ -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. +]], + }, +} |
