Skip to content

Commit

Permalink
docs(alloy_ls): Include tips for setting filetype on *.als files
Browse files Browse the repository at this point in the history
  • Loading branch information
dkasak committed Jan 14, 2025
1 parent 4facf2c commit e5c83a4
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions lua/lspconfig/configs/alloy_ls.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,24 @@ return {
https://github.com/AlloyTools/org.alloytools.alloy
Alloy is a formal specification language for describing structures and a tool for exploring them.
You may also need to configure the filetype for Alloy (*.als) files:
```
autocmd BufNewFile,BufRead *.als set filetype=alloy
```
or
```lua
vim.filetype.add({
pattern = {
['.*/*.als'] = 'alloy',
},
})
```
Alternatively, you may use a syntax plugin like https://github.com/runoshun/vim-alloy.
]],
},
}

0 comments on commit e5c83a4

Please sign in to comment.