aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Wahl <mfelsche@users.noreply.github.com>2026-02-27 23:39:52 +0100
committerGitHub <noreply@github.com>2026-02-27 17:39:52 -0500
commitd4668a2eae68cb6c512889721bb5769cc86c0dbc (patch)
treefefb7689a8a27196cae11978ace0bffec1e72605
parentdocs: update configs.md (diff)
downloadnvim-lspconfig-d4668a2eae68cb6c512889721bb5769cc86c0dbc.tar
nvim-lspconfig-d4668a2eae68cb6c512889721bb5769cc86c0dbc.tar.gz
nvim-lspconfig-d4668a2eae68cb6c512889721bb5769cc86c0dbc.tar.bz2
nvim-lspconfig-d4668a2eae68cb6c512889721bb5769cc86c0dbc.tar.lz
nvim-lspconfig-d4668a2eae68cb6c512889721bb5769cc86c0dbc.tar.xz
nvim-lspconfig-d4668a2eae68cb6c512889721bb5769cc86c0dbc.tar.zst
nvim-lspconfig-d4668a2eae68cb6c512889721bb5769cc86c0dbc.zip
fix(pony_lsp)!: rename `pony_language_server` to `pony_lsp` #4330
-rw-r--r--lsp/pony_language_server.lua17
-rw-r--r--lsp/pony_lsp.lua24
2 files changed, 33 insertions, 8 deletions
diff --git a/lsp/pony_language_server.lua b/lsp/pony_language_server.lua
index 88a55e9d..78ccb3bc 100644
--- a/lsp/pony_language_server.lua
+++ b/lsp/pony_language_server.lua
@@ -1,12 +1,13 @@
---@brief
---
---- https://github.com/ponylang/pony-language-server
----
---- Language server for the Pony programming language
+--- Renamed to [pony_lsp](#pony_lsp)
---@type vim.lsp.Config
-return {
- cmd = { 'pony-lsp' },
- filetypes = { 'pony' },
- root_markers = { 'corral.json', '.git' },
-}
+return vim.tbl_extend('force', vim.lsp.config.pony_lsp, {
+ on_init = function(...)
+ vim.deprecate('pony_language_server', 'pony_lsp', '3.0.0', 'nvim-lspconfig', false)
+ if vim.lsp.config.pony_lsp.on_init then
+ vim.lsp.config.pony_lsp.on_init(...)
+ end
+ end,
+})
diff --git a/lsp/pony_lsp.lua b/lsp/pony_lsp.lua
new file mode 100644
index 00000000..62727ba9
--- /dev/null
+++ b/lsp/pony_lsp.lua
@@ -0,0 +1,24 @@
+---@brief
+---
+--- https://github.com/ponylang/ponyc/tree/main/tools/pony-lsp
+---
+--- Language server for the Pony programming language
+
+--- default settings for pony-lsp
+local function default_settings()
+ ---@type table{ defines: string[], ponypath: string[] }
+ return {
+ defines = {},
+ ponypath = {},
+ }
+end
+
+---@type vim.lsp.Config
+return {
+ cmd = { 'pony-lsp' },
+ filetypes = { 'pony' },
+ root_markers = { 'corral.json', '.git' },
+ settings = {
+ ['pony-lsp'] = default_settings(),
+ },
+}