Skip to content

Commit

Permalink
use @vue/typescript-plugin when it just exists
Browse files Browse the repository at this point in the history
  • Loading branch information
tsukkee authored and mattn committed Mar 19, 2024
1 parent a936239 commit d076647
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions settings/typescript-language-server.vim
Original file line number Diff line number Diff line change
@@ -1,17 +1,6 @@
function! s:find_vue_plugin() abort
let package_json_path = lsp#utils#find_nearest_parent_file(lsp#utils#get_buffer_path(), 'package.json')
if empty(package_json_path)
return v:null
endif

let package_json = json_decode(join(readfile(package_json_path), ''))
if !(has_key(package_json, 'dependencies') && has_key(package_json['dependencies'], 'vue'))
return v:null
endif

let plugin_location = lsp_settings#servers_dir() .. '/volar-server/node_modules/@vue/typescript-plugin'
if !isdirectory(plugin_location)
call lsp_settings#utils#warning('Please install the latest volar-server to enable Vue support')
return v:null
endif

Expand Down

0 comments on commit d076647

Please sign in to comment.