add volar, setup volar for vue and ts, add fix for TS sync rendering to avoid syntax highlight flicker with huge files

main
Ayush Mukherjee 2 weeks ago
parent 91815480bc
commit ecb4a4b730

@ -22,8 +22,13 @@ vim.opt.cmdheight = 2
vim.opt.hidden = true vim.opt.hidden = true
vim.opt.termguicolors = true vim.opt.termguicolors = true
vim.opt.completeopt = { "menu", "menuone", "noselect" } vim.opt.completeopt = { "menu", "menuone", "noselect" }
vim.opt.signcolumn = "yes"
vim.o.guifont = "Roboto Mono for Powerline:h14" vim.o.guifont = "Roboto Mono for Powerline:h14"
-- temp solution to force sync parsing for treesitter due to flickering
-- see gh issue: https://github.com/neovim/neovim/issues/32660
vim.g._ts_force_sync_parsing = true
vim.cmd([[ vim.cmd([[
syntax on syntax on
syntax enable syntax enable

@ -6,6 +6,8 @@ local servers = {
--"phpactor", --"phpactor",
"intelephense", "intelephense",
"emmet_language_server", "emmet_language_server",
"volar",
"eslint",
} }
require("mason").setup() require("mason").setup()

@ -0,0 +1,8 @@
return {
filetypes = {'typescript', 'javascript', 'javascriptreact', 'typescriptreact', 'vue'},
init_options = {
vue = {
hybridMode = false,
},
},
}
Loading…
Cancel
Save