aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorgithub-actions[bot] <github-actions[bot]@users.noreply.github.com>2025-01-14 13:23:19 +0000
committergithub-actions[bot] <github-actions[bot]@users.noreply.github.com>2025-01-14 13:23:19 +0000
commit339ccc81e08793c3af9b83882a6ebd90c9cc0d3b (patch)
treedf9b554ea0b57d777e83ffcffb8a58ad7c767c68 /doc
parentdocs(alloy_ls): include tips for setting filetype on *.als files (#3561) (diff)
downloadnvim-lspconfig-339ccc81e08793c3af9b83882a6ebd90c9cc0d3b.tar
nvim-lspconfig-339ccc81e08793c3af9b83882a6ebd90c9cc0d3b.tar.gz
nvim-lspconfig-339ccc81e08793c3af9b83882a6ebd90c9cc0d3b.tar.bz2
nvim-lspconfig-339ccc81e08793c3af9b83882a6ebd90c9cc0d3b.tar.lz
nvim-lspconfig-339ccc81e08793c3af9b83882a6ebd90c9cc0d3b.tar.xz
nvim-lspconfig-339ccc81e08793c3af9b83882a6ebd90c9cc0d3b.tar.zst
nvim-lspconfig-339ccc81e08793c3af9b83882a6ebd90c9cc0d3b.zip
docs: update configs.md
skip-checks: true
Diffstat (limited to 'doc')
-rw-r--r--doc/configs.md18
-rw-r--r--doc/configs.txt18
2 files changed, 36 insertions, 0 deletions
diff --git a/doc/configs.md b/doc/configs.md
index adcbbcfa..6239f6ac 100644
--- a/doc/configs.md
+++ b/doc/configs.md
@@ -448,6 +448,24 @@ 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.
+
Snippet to enable the language server:
```lua
require'lspconfig'.alloy_ls.setup{}
diff --git a/doc/configs.txt b/doc/configs.txt
index adcbbcfa..6239f6ac 100644
--- a/doc/configs.txt
+++ b/doc/configs.txt
@@ -448,6 +448,24 @@ 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.
+
Snippet to enable the language server:
```lua
require'lspconfig'.alloy_ls.setup{}