mirror of
https://github.com/neovim/neovim.git
synced 2024-12-24 05:05:00 -07:00
fix: explain that user should run nvim with -V1 to see more information
It's not obvious for users how to figure out where a mapping is set from only "Last set from Lua".
This commit is contained in:
parent
35239e977f
commit
77d3526a3d
@ -2392,7 +2392,7 @@ char *get_scriptname(LastSet last_set, bool *should_free)
|
|||||||
case SID_WINLAYOUT:
|
case SID_WINLAYOUT:
|
||||||
return _("changed window size");
|
return _("changed window size");
|
||||||
case SID_LUA:
|
case SID_LUA:
|
||||||
return _("Lua");
|
return _("Lua (run Nvim with -V1 for more details)");
|
||||||
case SID_API_CLIENT:
|
case SID_API_CLIENT:
|
||||||
snprintf(IObuff, IOSIZE, _("API client (channel id %" PRIu64 ")"), last_set.channel_id);
|
snprintf(IObuff, IOSIZE, _("API client (channel id %" PRIu64 ")"), last_set.channel_id);
|
||||||
return IObuff;
|
return IObuff;
|
||||||
|
@ -1598,7 +1598,7 @@ describe('API', function()
|
|||||||
api.nvim_exec_lua('vim.api.nvim_set_option_value("equalalways", true, {})', {})
|
api.nvim_exec_lua('vim.api.nvim_set_option_value("equalalways", true, {})', {})
|
||||||
status, rv = pcall(command_output, 'verbose set equalalways?')
|
status, rv = pcall(command_output, 'verbose set equalalways?')
|
||||||
eq(true, status)
|
eq(true, status)
|
||||||
eq(' equalalways\n\tLast set from Lua', rv)
|
eq(' equalalways\n\tLast set from Lua (run Nvim with -V1 for more details)', rv)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
it('updates whether the option has ever been set #25025', function()
|
it('updates whether the option has ever been set #25025', function()
|
||||||
|
@ -230,7 +230,7 @@ describe('lua verbose:', function()
|
|||||||
eq(
|
eq(
|
||||||
[[
|
[[
|
||||||
nohlsearch
|
nohlsearch
|
||||||
Last set from Lua]],
|
Last set from Lua (run Nvim with -V1 for more details)]],
|
||||||
result
|
result
|
||||||
)
|
)
|
||||||
end)
|
end)
|
||||||
|
Loading…
Reference in New Issue
Block a user