From 3a88d061efc31e1c8230fe18a910ef23b2462334 Mon Sep 17 00:00:00 2001 From: jabuxas Date: Thu, 10 Oct 2024 18:13:12 -0300 Subject: [PATCH] fix: reorder around manual and auto servers --- init.lua | 50 +++++++++++++++++++++++++------------------------- 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/init.lua b/init.lua index bbdcb27..572f365 100644 --- a/init.lua +++ b/init.lua @@ -329,8 +329,25 @@ local on_attach = function(_, bufnr) ) vim.diagnostic.config({ float = { border = "single" } }) end +local mason_registry = require('mason-registry') +local vue_language_server_path = mason_registry.get_package('vue-language-server'):get_install_path() .. + '/node_modules/@vue/language-server' local servers = { ocamllsp = {}, + + ts_ls = { + init_options = { + plugins = { + { + name = '@vue/typescript-plugin', + location = vue_language_server_path, + languages = { 'vue' }, + }, + }, + }, + filetypes = { 'typescript', 'javascript', 'javascriptreact', 'typescriptreact', 'vue' }, + }, + gopls = { gopls = { usePlaceholders = true, @@ -355,6 +372,14 @@ local servers = { } }, + volar = { + init_options = { + vue = { + hybridMode = true, + }, + }, + + }, lua_ls = { Lua = { @@ -394,35 +419,10 @@ require('mason-lspconfig').setup { }, } -local mason_registry = require('mason-registry') -local vue_language_server_path = mason_registry.get_package('vue-language-server'):get_install_path() .. - '/node_modules/@vue/language-server' local manual_servers = { texlab = {}, - tsserver = { - init_options = { - plugins = { - { - name = '@vue/typescript-plugin', - location = vue_language_server_path, - languages = { 'vue' }, - }, - }, - }, - filetypes = { 'typescript', 'javascript', 'javascriptreact', 'typescriptreact', 'vue' }, - }, - - volar = { - init_options = { - vue = { - hybridMode = true, - }, - }, - - }, - rust_analyzer = { settings = { ['rust_analyzer'] = {