update README
This commit is contained in:
parent
56b0f5473a
commit
65b38b7fec
14
README.md
14
README.md
|
|
@ -38,7 +38,7 @@ code --install-extension tsl-devkit-1.0.0.vsix # 具体版本号以vsix文件为
|
|||
|
||||
## Vim
|
||||
|
||||
`vim`需要9.0以上版本
|
||||
需要`vim 9.0`以上版本
|
||||
|
||||
将[tsl.vim](./vim/tsl.vim)放入`~/.vim/syntax/`
|
||||
|
||||
|
|
@ -46,3 +46,15 @@ code --install-extension tsl-devkit-1.0.0.vsix # 具体版本号以vsix文件为
|
|||
" vimrc加入,可同时支持tsl和tsf
|
||||
autocmd BufNewFile,BufRead *.ts[lf] setf tsl
|
||||
```
|
||||
|
||||
使用`LSP`,需要在你的`languageserver`设置相关的参数,以`coc.nvim`为例,需要在`coc-settings.json`设置如下内容
|
||||
|
||||
```json
|
||||
"languageserver": {
|
||||
"tsl-server": {
|
||||
"command": "tsl-server",
|
||||
"filetypes": ["tsl", "tsf"]
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue