Skip to content

Commit

Permalink
chore(plugin): improve vim version in CocInfo
Browse files Browse the repository at this point in the history
  • Loading branch information
chemzqm committed May 8, 2020
1 parent 88915b9 commit c24c3d5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,8 @@ export default class Plugin extends EventEmitter {
channel.appendLine('## versions')
channel.appendLine('')
let out = await this.nvim.call('execute', ['version']) as string
channel.appendLine('vim version: ' + out.trim().split('\n', 2)[0])
let first = out.trim().split('\n', 2)[0].replace(/\(.*\)/, '').trim()
channel.appendLine('vim version: ' + first + `${workspace.isVim ? ' ' + workspace.env.version : ''}`)
channel.appendLine('node version: ' + process.version)
channel.appendLine('coc.nvim version: ' + this.version)
channel.appendLine('term: ' + (process.env.TERM_PROGRAM || process.env.TERM))
Expand Down

0 comments on commit c24c3d5

Please sign in to comment.