mirror of
https://github.com/neovim/neovim.git
synced 2026-01-04 02:17:09 +10:00
fix(pack): consistently use "revision" instead of "state"
Problem: In some areas plugin's revision is named "state". This might be confusing for the users. Solution: Consistently use "revision" to indicate "plugin's state on disk".
This commit is contained in:
@@ -194,7 +194,7 @@ methods['textDocument/hover'] = function(params, callback)
|
||||
|
||||
local lines = vim.api.nvim_buf_get_lines(bufnr, 0, -1, false)
|
||||
local lnum = params.position.line + 1
|
||||
local commit = lines[lnum]:match('^[<>] (%x+) │') or lines[lnum]:match('^State.*:%s+(%x+)')
|
||||
local commit = lines[lnum]:match('^[<>] (%x+) │') or lines[lnum]:match('^Revision.*:%s+(%x+)')
|
||||
local tag = lines[lnum]:match('^• (.+)$')
|
||||
if commit == nil and tag == nil then
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user