From 7b8b0b3ddd0ed6eddc93982753acaddc578defac Mon Sep 17 00:00:00 2001 From: Tama McGlinn Date: Fri, 20 Sep 2024 09:49:16 +0200 Subject: 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 --- lua/lspconfig/server_configurations/als.lua | 41 ----------------------------- 1 file changed, 41 deletions(-) delete mode 100644 lua/lspconfig/server_configurations/als.lua (limited to 'lua') diff --git a/lua/lspconfig/server_configurations/als.lua b/lua/lspconfig/server_configurations/als.lua deleted file mode 100644 index 30e3227a..00000000 --- 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")]], - }, - }, -} -- cgit v1.2.3-70-g09d2