diff options
author | dundargoc <gocdundar@gmail.com> | 2024-03-30 00:57:22 +0100 |
---|---|---|
committer | dundargoc <33953936+dundargoc@users.noreply.github.com> | 2024-03-30 12:32:47 +0100 |
commit | 77d3526a3d088b16e4f07e84c79cbd4a3411d0fe (patch) | |
tree | b55c1c58c531763f963d343577c30f1f51c0849f | |
parent | 35239e977f53c25016b57729cada612aa53e11d4 (diff) | |
download | rneovim-77d3526a3d088b16e4f07e84c79cbd4a3411d0fe.tar.gz rneovim-77d3526a3d088b16e4f07e84c79cbd4a3411d0fe.tar.bz2 rneovim-77d3526a3d088b16e4f07e84c79cbd4a3411d0fe.zip |
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".
-rw-r--r-- | src/nvim/runtime.c | 2 | ||||
-rw-r--r-- | test/functional/api/vim_spec.lua | 2 | ||||
-rw-r--r-- | test/functional/ex_cmds/verbose_spec.lua | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/runtime.c b/src/nvim/runtime.c index 76188499e3..bc9ace0fa8 100644 --- a/src/nvim/runtime.c +++ b/src/nvim/runtime.c @@ -2392,7 +2392,7 @@ char *get_scriptname(LastSet last_set, bool *should_free) case SID_WINLAYOUT: return _("changed window size"); case SID_LUA: - return _("Lua"); + return _("Lua (run Nvim with -V1 for more details)"); case SID_API_CLIENT: snprintf(IObuff, IOSIZE, _("API client (channel id %" PRIu64 ")"), last_set.channel_id); return IObuff; diff --git a/test/functional/api/vim_spec.lua b/test/functional/api/vim_spec.lua index d72ccf99b3..dc36926641 100644 --- a/test/functional/api/vim_spec.lua +++ b/test/functional/api/vim_spec.lua @@ -1598,7 +1598,7 @@ describe('API', function() api.nvim_exec_lua('vim.api.nvim_set_option_value("equalalways", true, {})', {}) status, rv = pcall(command_output, 'verbose set equalalways?') 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) it('updates whether the option has ever been set #25025', function() diff --git a/test/functional/ex_cmds/verbose_spec.lua b/test/functional/ex_cmds/verbose_spec.lua index 7ceb2460d3..026c70be8a 100644 --- a/test/functional/ex_cmds/verbose_spec.lua +++ b/test/functional/ex_cmds/verbose_spec.lua @@ -230,7 +230,7 @@ describe('lua verbose:', function() eq( [[ nohlsearch - Last set from Lua]], + Last set from Lua (run Nvim with -V1 for more details)]], result ) end) |