summaryrefslogtreecommitdiff
path: root/.config/nvim
diff options
context:
space:
mode:
Diffstat (limited to '.config/nvim')
-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,