Skip to content

Commit d076647

Browse files
tsukkeemattn
authored andcommitted
use @vue/typescript-plugin when it just exists
1 parent a936239 commit d076647

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

settings/typescript-language-server.vim

-11
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,6 @@
11
function! s:find_vue_plugin() abort
2-
let package_json_path = lsp#utils#find_nearest_parent_file(lsp#utils#get_buffer_path(), 'package.json')
3-
if empty(package_json_path)
4-
return v:null
5-
endif
6-
7-
let package_json = json_decode(join(readfile(package_json_path), ''))
8-
if !(has_key(package_json, 'dependencies') && has_key(package_json['dependencies'], 'vue'))
9-
return v:null
10-
endif
11-
122
let plugin_location = lsp_settings#servers_dir() .. '/volar-server/node_modules/@vue/typescript-plugin'
133
if !isdirectory(plugin_location)
14-
call lsp_settings#utils#warning('Please install the latest volar-server to enable Vue support')
154
return v:null
165
endif
176

0 commit comments

Comments
 (0)