diff options
| author | github-actions[bot] <github-actions[bot]@users.noreply.github.com> | 2025-01-14 13:23:19 +0000 |
|---|---|---|
| committer | github-actions[bot] <github-actions[bot]@users.noreply.github.com> | 2025-01-14 13:23:19 +0000 |
| commit | 339ccc81e08793c3af9b83882a6ebd90c9cc0d3b (patch) | |
| tree | df9b554ea0b57d777e83ffcffb8a58ad7c767c68 /doc | |
| parent | docs(alloy_ls): include tips for setting filetype on *.als files (#3561) (diff) | |
| download | nvim-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.md | 18 | ||||
| -rw-r--r-- | doc/configs.txt | 18 |
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{} |
