aboutsummaryrefslogtreecommitdiffstats
path: root/lua/lspconfig
diff options
context:
space:
mode:
authorElie Richa <eliericha@users.noreply.github.com>2025-04-02 15:39:18 +0200
committerGitHub <noreply@github.com>2025-04-02 06:39:18 -0700
commitde4b6044f8b96b23f9210b30978618e83edb5df9 (patch)
treef2ef95fc16a711cb5086a8d92b015f4e2c6fdac2 /lua/lspconfig
parentdocs: update configs.md (diff)
downloadnvim-lspconfig-de4b6044f8b96b23f9210b30978618e83edb5df9.tar
nvim-lspconfig-de4b6044f8b96b23f9210b30978618e83edb5df9.tar.gz
nvim-lspconfig-de4b6044f8b96b23f9210b30978618e83edb5df9.tar.bz2
nvim-lspconfig-de4b6044f8b96b23f9210b30978618e83edb5df9.tar.lz
nvim-lspconfig-de4b6044f8b96b23f9210b30978618e83edb5df9.tar.xz
nvim-lspconfig-de4b6044f8b96b23f9210b30978618e83edb5df9.tar.zst
nvim-lspconfig-de4b6044f8b96b23f9210b30978618e83edb5df9.zip
feat(ada_ls): alire.toml #3667
Diffstat (limited to 'lua/lspconfig')
-rw-r--r--lua/lspconfig/configs/ada_ls.lua6
1 files changed, 4 insertions, 2 deletions
diff --git a/lua/lspconfig/configs/ada_ls.lua b/lua/lspconfig/configs/ada_ls.lua
index c532f641..7595a6e8 100644
--- a/lua/lspconfig/configs/ada_ls.lua
+++ b/lua/lspconfig/configs/ada_ls.lua
@@ -4,7 +4,7 @@ return {
default_config = {
cmd = { 'ada_language_server' },
filetypes = { 'ada' },
- root_dir = util.root_pattern('Makefile', '.git', '*.gpr', '*.adc'),
+ root_dir = util.root_pattern('Makefile', '.git', 'alire.toml', '*.gpr', '*.adc'),
},
docs = {
description = [[
@@ -12,7 +12,9 @@ https://github.com/AdaCore/ada_language_server
Installation instructions can be found [here](https://github.com/AdaCore/ada_language_server#Install).
-Can be configured by passing a "settings" object to `ada_ls.setup{}`:
+Workspace-specific [settings](https://github.com/AdaCore/ada_language_server/blob/master/doc/settings.md) such as `projectFile` can be provided in a `.als.json` file at the root of the workspace.
+
+Alternatively, configuration may be passed as a "settings" object to `ada_ls.setup{}`:
```lua
require('lspconfig').ada_ls.setup{