Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 9 additions & 4 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,12 +132,17 @@ If a config needs to be renamed or deprecated, changes its contents like this:
```lua
---@brief
---
--- Renamed to [vsrocq](#vsrocq)

vim.deprecate('vscoqtop', 'vsrocq', '2.0.0', 'nvim-lspconfig', false)
--- Renamed to [systemd_lsp](#systemd_lsp)

---@type vim.lsp.Config
return vim.lsp.config.vsrocq
return vim.tbl_extend('force', vim.lsp.config.systemd_lsp, {
on_init = function(...)
vim.deprecate('systemd_ls', 'systemd_lsp', '3.0.0', 'nvim-lspconfig', false)
if vim.lsp.config.systemd_lsp.on_init then
vim.lsp.config.systemd_lsp.on_init(...)
end
end,
})
```

## Commit style
Expand Down
11 changes: 8 additions & 3 deletions lsp/systemd_ls.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@
---
--- Renamed to [systemd_lsp](#systemd_lsp)

vim.deprecate('systemd_ls', 'systemd_lsp', '2.0.0', 'nvim-lspconfig', false)

---@type vim.lsp.Config
return vim.lsp.config.systemd_lsp
return vim.tbl_extend('force', vim.lsp.config.systemd_lsp, {
on_init = function(...)
vim.deprecate('systemd_ls', 'systemd_lsp', '3.0.0', 'nvim-lspconfig', false)
if vim.lsp.config.systemd_lsp.on_init then
vim.lsp.config.systemd_lsp.on_init(...)
end
end,
})
12 changes: 8 additions & 4 deletions lsp/volar.lua
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
---@brief
---
--- Renamed to [vue_ls](#vue_ls)
---
---
vim.deprecate('volar', 'vue_ls', '3.0.0', 'nvim-lspconfig', false)

---@type vim.lsp.Config
return vim.lsp.config.vue_ls
return vim.tbl_extend('force', vim.lsp.config.vue_ls, {
on_init = function(...)
vim.deprecate('volar', 'vue_ls', '3.0.0', 'nvim-lspconfig', false)
if vim.lsp.config.vue_ls.on_init then
vim.lsp.config.vue_ls.on_init(...)
end
end,
})
11 changes: 8 additions & 3 deletions lsp/vscoqtop.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@
---
--- Renamed to [vsrocq](#vsrocq)

vim.deprecate('vscoqtop', 'vsrocq', '2.0.0', 'nvim-lspconfig', false)

---@type vim.lsp.Config
return vim.lsp.config.vsrocq
return vim.tbl_extend('force', vim.lsp.config.vsrocq, {
on_init = function(...)
vim.deprecate('vscoqtop', 'vsrocq', '3.0.0', 'nvim-lspconfig', false)
if vim.lsp.config.vsrocq.on_init then
vim.lsp.config.vsrocq.on_init(...)
end
end,
})