From b4eec62be82f8e48f3a099fbb321f9af86e07afb Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Mon, 24 Jun 2024 11:09:33 +0200 Subject: [nvim] enable server specific LSP config --- .config/nvim/plugins.vim | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.config/nvim/plugins.vim b/.config/nvim/plugins.vim index c2fbe88..a333ac1 100644 --- a/.config/nvim/plugins.vim +++ b/.config/nvim/plugins.vim @@ -134,10 +134,21 @@ require('lazy').setup({ require('mason-lspconfig').setup() require('mason-lspconfig').setup_handlers { function (server_name) - require ('lspconfig')[server_name].setup { + local lspconfig_setup = { on_attach = on_attach, capabilities = capabilities, } + + -- server specific config + if server_name == 'volar' then + lspconfig_setup['init_options'] = { + vue = { + hybridMode = false, + } + } + end + + require('lspconfig')[server_name].setup(lspconfig_setup) end } end, -- cgit v1.2.3