summaryrefslogtreecommitdiff
path: root/.config/nvim/plugins.vim
diff options
context:
space:
mode:
authorDaniel Weipert <git@mail.dweipert.de>2024-06-24 11:09:33 +0200
committerDaniel Weipert <git@mail.dweipert.de>2024-06-24 11:09:33 +0200
commitb4eec62be82f8e48f3a099fbb321f9af86e07afb (patch)
tree6cc003b22f4aaeac6e5d683ab34eb91eea4d27d2 /.config/nvim/plugins.vim
parent847ff5dffdd169a6bf8afce31c90f07716ddf821 (diff)
[nvim] enable server specific LSP config
Diffstat (limited to '.config/nvim/plugins.vim')
-rw-r--r--.config/nvim/plugins.vim13
1 files changed, 12 insertions, 1 deletions
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,