aboutsummaryrefslogtreecommitdiffstats
path: root/lsp/volar.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lsp/volar.lua')
-rw-r--r--lsp/volar.lua12
1 files changed, 8 insertions, 4 deletions
diff --git a/lsp/volar.lua b/lsp/volar.lua
index 040a93eb..f797541c 100644
--- a/lsp/volar.lua
+++ b/lsp/volar.lua
@@ -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,
+})