Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(language-service): update neovim lsp set up info #4085

Merged
merged 1 commit into from Mar 13, 2024

Conversation

CofCat456
Copy link
Contributor

@CofCat456 CofCat456 commented Mar 13, 2024

The tutorial for setting up Volar 2.0 on NeoVim has been updated.

The use of multiple servers is no longer applicable in the new version.

To help users who are updating Volar on Neovim quickly find the correct configuration, issue #3925 serve as the new link.

@johnsoncodehk johnsoncodehk merged commit 28b1dd6 into vuejs:master Mar 13, 2024
3 checks passed
@johnsoncodehk
Copy link
Member

Thanks!

@kevmul
Copy link

kevmul commented Mar 20, 2024

Can we outline exactly what is needed here. That link there are a lot of trial and error comments. And using 2.0.7 is still not working for me. ( so I am still sitting pretty @ v 1.8.27 )

I have tried adding to tsserver

local lspconfig = require "lspconfig"

local vue_ts_plugin_path = require('mason-registry')
           .get_package('vue-language-server'):get_install_path() .. '/typescript-plugin'

lspconfig.tsserver.setup {
  init_options = {
    plugins = {
      {
        name = '@vue/typescript-plugin',
        location = vue_ts_plugin_path,
        languages = { 'vue' },
      },
    },
  },
  capabilities = capabilities,
  filetypes = { "typescript", "typescriptreact", "vue", "json" },
}

This is after following this RayGuo-ergou Dotfiles

Thank you! 😃

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants