Comments (2)
In most case lspconfig
will do that for you, e.g. find tsdk in pwd first then find in root. see: https://github.com/neovim/nvim-lspconfig/blob/master/lua/lspconfig/server_configurations/volar.lua#L27
If you want to define yourself you can do
require'lspconfig'.volar.setup {
filetypes = { 'typescript', 'javascript', 'javascriptreact', 'typescriptreact', 'vue' },
init_options = {
vue = {
hybridMode = false,
},
+ typescript = {
+ tsdk = <YOUR_PATH>
+ },
},
on_attach = on_attach,
capabilities = capabilities
}
see:
language-tools/packages/language-server/lib/types.ts
Lines 4 to 6 in d587ba0
from language-tools.
Thanks!
from language-tools.
Related Issues (20)
- Event listeners type issues after upgrade `'($event: any) => void' is not assignable to type '() => any'` HOT 1
- 升级到 2.0.18后在组件上使用 v-for 会导致 style等部分属性报 ts类型错误 HOT 2
- 编译崩溃 HOT 1
- 开发微信小程序,view标签会类型错误提示 HOT 2
- Type assertions in setup are not narrowed in template
- How to comment tempalte code with <!-- --> ,not {{/* */}}? HOT 1
- Vue - Official v2.0.19 Cannot automatically complete @ events, such as click events HOT 3
- Document required node version HOT 1
- High CPU usage
- Why color styling is broken? HOT 4
- Cannot find module '@uni' or its corresponding type declarations. HOT 6
- vue-tsc actual readme HOT 1
- Module `@vue/runtime-core` cannot be reconized by language server HOT 2
- Duplicate intellisense
- Incorrect auto-complete for tag-like string in template literals
- v2.0.17之后自定义组件的HoverTip没了
- .vscode typescript settings not respected in .vue files HOT 6
- configuring tags?
- Color is broken when <component> is in the same file
- Project doesn't build if using v-memo on list rendering since v2.0.18 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from language-tools.