-
-
Notifications
You must be signed in to change notification settings - Fork 399
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
Trying to understand why my volar lsp is not working #2046
Labels
question
Further information is requested
Comments
Please try: local util = require 'lspconfig/util
local script_path = "/home/user/.nvm/versions/node/v16.18.0/lib/node_modules/@volar/vue-language-server/bin/vue-language-server.js"
- local tslib_path = "/home/user/.nvm/versions/node/v16.18.0/lib/node_modules/@vue/cli/node_modules/typescript/lib/tsserverlibrary.js"
+ local tslib_path = "/home/user/.nvm/versions/node/v16.18.0/lib/node_modules/@vue/cli/node_modules/typescript/lib"
lspconfig.volar.setup{
on_attach = on_attach,
capabilities = capabilities,
flags = lsp_flags,
cmd = {"node", script_path, "--stdio"},
filetypes = {'typescript', 'javascript', 'javascriptreact', 'typescriptreact', 'vue', 'json'},
root_dir = util.root_pattern("package.json", ".git/");
init_options = {
typescript = {
- serverPath = tslib_path
+ tsdk = tslib_path
},
- languageFeatures = {
- references = true,
- definition = true,
- typeDefinition = true,
- callHierarchy = true,
- hover = true,
- rename = true,
- renameFileRefactoring = true,
- signatureHelp = true,
- codeAction = true,
- completion = {
- defaultTagNameCase = 'both',
- defaultAttrNameCase = 'kebabCase',
- getDocumentNameCasesRequest = false,
- getDocumentSelectionRequest = false,
- },
- schemaRequestService = true,
- documentHighlight = true,
- documentLink = true,
- codeLens = { showReferencesNotification = true },
- semanticTokens = true,
- diagnostics = true,
- },
- documentFeatures = {
- selectionRange = false,
- foldingRange = false,
- linkedEditingRange = true,
- documentSymbol = true,
- documentColor = true,
- documentFormatting = {
- defaultPrintWidth = 100,
- getDocumentPrintWidthRequest = true,
- },
- },
},
settings = {
volar = {
codeLens = {
references = true,
pugTools = true,
scriptSetupTools = true,
},
},
};
}; |
@johnsoncodehk my hero! <3 Awesome! Thank you so much! |
yaegassy
changed the title
Trying to understand why my vetur lsp is not working
Trying to understand why my volar lsp is not working
Oct 25, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey there!
I have conscientiously spent several hours researching my problem and am already a little tired
My lsp configuration for vetur
lsp.log
The text was updated successfully, but these errors were encountered: