LazyVim.LazyVim/lua/lazyvim/plugins
Ray Guo 4b0f720457
feat(vue): enabled hybrid mode to avoid 2 typescript lsp running at same time (#3908)
## What is this PR for?

At the moment, the config for vue set hybrid mode to `false` which volar
will run a typescript server under the hook. ( hybrid mode false is the
takeover mode in v1, was introduced in `2.0.7` see more information
here: https://github.com/vuejs/language-tools/pull/4119 ).

However, another vtsls with vue language plugin also attached to vue
files, this will cause two typescript server running at the same time.
It can be very easily observed with tools like `htop` volar and vtsls
will have similar memory usage which is abnormal because volar should be
very light by itself. This will introduce issues like duplicate
diagnostics, see
https://github.com/vuejs/language-tools/issues/4159#issuecomment-2208101079

In this pull request, I set the hybrid mode to true as default because
the hybrid mode is the "correct" way moving forward, thus it would be
more stable. Let me know if you feel it should stay as `false` to be
default.

## Does this PR fix an existing issue?

No existing issue.

## Checklist

- [x] I've read the
[CONTRIBUTING](https://github.com/LazyVim/LazyVim/blob/main/CONTRIBUTING.md)
guidelines.
2024-07-05 16:12:04 +02:00
..
compat fix(extras): better reasons as to why some extras are included in your config. 2024-06-14 11:14:00 +02:00
extras feat(vue): enabled hybrid mode to avoid 2 typescript lsp running at same time (#3908) 2024-07-05 16:12:04 +02:00
lsp fix(lsp): prevent setting up mason-lspconfig more than once when setting mslp opts 2024-06-29 21:01:42 +02:00
coding.lua feat(cmp): attempt for dynamic width and trimming between fields (#3873) 2024-06-30 23:14:00 +02:00
colorscheme.lua feat(catppuccin): enable more integrations (#1922) 2023-11-04 11:09:01 +01:00
editor.lua refactor(trouble): move options in keymaps for lsp and symbols to opts (#3917) 2024-07-05 08:22:38 +02:00
formatting.lua fix(conform): lsp_format breaking changes (#3707) 2024-06-17 19:49:30 +02:00
init.lua refactor: config = true >> opts = {} 2024-06-11 00:06:56 +02:00
linting.lua fix(lint): make prepend_args opt work when default args is empty (#3828) 2024-06-27 17:31:11 +02:00
treesitter.lua feat(treesitter-textobjects): added ]a and [a to move between parameters 2024-06-16 19:18:32 +02:00
ui.lua feat(ui): use mini.icons instead of nvim-wev-devicons (#3899) 2024-07-04 18:18:10 +02:00
util.lua feat(util)!: move vim-startuptime to an extra 2024-05-16 21:25:51 +02:00
xtras.lua refactor: LazyVim.config 2024-06-16 15:35:38 +02:00