update README

This commit is contained in:
StarfishC 2025-06-24 22:16:08 +08:00
parent 56b0f5473a
commit 65b38b7fec
1 changed files with 13 additions and 1 deletions

View File

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