From 7b8b0b3ddd0ed6eddc93982753acaddc578defac Mon Sep 17 00:00:00 2001 From: Tama McGlinn Date: Fri, 20 Sep 2024 09:49:16 +0200 Subject: [PATCH] fix(als): remove als config (#3310) Moved ALS config into own repo. See issue #1683 regarding problems with the current config. lspconfig is not intended to provide functional lsp configs, but rather a framework for other plugins to implement those. For more about that, see the discussion on https://github.com/neovim/nvim-lspconfig/pull/1693 The new ALS LSP config plugin is https://github.com/TamaMcGlinn/nvim-lspconfig-ada --- doc/server_configurations.md | 49 --------------------- doc/server_configurations.txt | 49 --------------------- lua/lspconfig/server_configurations/als.lua | 41 ----------------- 3 files changed, 139 deletions(-) delete mode 100644 lua/lspconfig/server_configurations/als.lua diff --git a/doc/server_configurations.md b/doc/server_configurations.md index 958a6331b1..b9476511f3 100644 --- a/doc/server_configurations.md +++ b/doc/server_configurations.md @@ -402,55 +402,6 @@ require'lspconfig'.aiken.setup{} ``` -## als - -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 `als.setup{}`: - -```lua -require('lspconfig').als.setup{ - settings = { - ada = { - projectFile = "project.gpr"; - scenarioVariables = { ... }; - } - } -} -``` - - - -**Snippet to enable the language server:** -```lua -require'lspconfig'.als.setup{} -``` - - -**Default values:** - - `cmd` : - ```lua - { "ada_language_server" } - ``` - - `deprecate` : - ```lua - { - to = "github.com/TamaMcGlinn/nvim-lspconfig-ada", - version = "0.2.0" - } - ``` - - `filetypes` : - ```lua - { "ada" } - ``` - - `root_dir` : - ```lua - util.root_pattern("Makefile", ".git", "*.gpr", "*.adc") - ``` - - ## anakin_language_server https://pypi.org/project/anakin-language-server/ diff --git a/doc/server_configurations.txt b/doc/server_configurations.txt index 958a6331b1..b9476511f3 100644 --- a/doc/server_configurations.txt +++ b/doc/server_configurations.txt @@ -402,55 +402,6 @@ require'lspconfig'.aiken.setup{} ``` -## als - -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 `als.setup{}`: - -```lua -require('lspconfig').als.setup{ - settings = { - ada = { - projectFile = "project.gpr"; - scenarioVariables = { ... }; - } - } -} -``` - - - -**Snippet to enable the language server:** -```lua -require'lspconfig'.als.setup{} -``` - - -**Default values:** - - `cmd` : - ```lua - { "ada_language_server" } - ``` - - `deprecate` : - ```lua - { - to = "github.com/TamaMcGlinn/nvim-lspconfig-ada", - version = "0.2.0" - } - ``` - - `filetypes` : - ```lua - { "ada" } - ``` - - `root_dir` : - ```lua - util.root_pattern("Makefile", ".git", "*.gpr", "*.adc") - ``` - - ## anakin_language_server https://pypi.org/project/anakin-language-server/ diff --git a/lua/lspconfig/server_configurations/als.lua b/lua/lspconfig/server_configurations/als.lua deleted file mode 100644 index 30e3227a71..0000000000 --- a/lua/lspconfig/server_configurations/als.lua +++ /dev/null @@ -1,41 +0,0 @@ -local util = require 'lspconfig.util' -local bin_name = 'ada_language_server' - -if vim.fn.has 'win32' == 1 then - bin_name = 'ada_language_server.exe' -end - -return { - default_config = { - cmd = { bin_name }, - filetypes = { 'ada' }, - root_dir = util.root_pattern('Makefile', '.git', '*.gpr', '*.adc'), - deprecate = { - to = 'github.com/TamaMcGlinn/nvim-lspconfig-ada', - version = '0.2.0', - }, - }, - docs = { - description = [[ -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 `als.setup{}`: - -```lua -require('lspconfig').als.setup{ - settings = { - ada = { - projectFile = "project.gpr"; - scenarioVariables = { ... }; - } - } -} -``` -]], - default_config = { - root_dir = [[util.root_pattern("Makefile", ".git", "*.gpr", "*.adc")]], - }, - }, -}