From 5070694861f91ac258fbf851ed771294cafafb8f Mon Sep 17 00:00:00 2001 From: xiaojianzheng <1272209235@qq.com> Date: Sat, 15 Jun 2024 05:06:53 +0800 Subject: [PATCH] fix(vue): disable volar hybrid mode since it interferes with tsserver (#3654) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit can not inc-rename when volar is enabled. After the configuration in commit was added, the inc-rename operation returned to normal. I suspect that volar's Hybrid mode affects the rename operation. https://github.com/vuejs/language-tools?tab=readme-ov-file#none-hybrid-modesimilar-to-takeover-mode-configuration-requires-vuelanguage-server-version-207 Co-authored-by: 肖健正 --- lua/lazyvim/plugins/extras/lang/vue.lua | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lua/lazyvim/plugins/extras/lang/vue.lua b/lua/lazyvim/plugins/extras/lang/vue.lua index 45f1a9f7..cd2fe4f1 100644 --- a/lua/lazyvim/plugins/extras/lang/vue.lua +++ b/lua/lazyvim/plugins/extras/lang/vue.lua @@ -19,7 +19,13 @@ return { "neovim/nvim-lspconfig", opts = { servers = { - volar = {}, + volar = { + init_options = { + vue = { + hybridMode = false, + }, + }, + }, vtsls = {}, }, },