Files
neovim/runtime/doc
shadmansaleh ebfe083337 feat(lua): show proper verbose output for lua configuration
`:verbose` didn't work properly with lua configs (For example:
    options or keymaps are set from lua, just say that they were set
    from lua, doesn't say where they were set at.

This fixes that issue. Now `:verbose` will provide filename and line no
when option/keymap is set from lua.

Changes:
  - compiles lua/vim/keymap.lua as vim/keymap.lua
 - When souring a lua file current_sctx.sc_sid is set to SID_LUA
 - Moved finding scripts SID out of `do_source()` to `get_current_script_id()`.
   So it can be reused for lua files.
 - Added new function `nlua_get_sctx` that extracts current lua scripts
   name and line no with debug library. And creates a sctx for it.
     NOTE: This function ignores C functions and blacklist which
     currently contains only vim/_meta.lua so vim.o/opt wrappers aren't
     targeted.
 - Added function `nlua_set_sctx` that changes provided sctx to current
   lua scripts sctx if a lua file is being executed.
 - Added tests in tests/functional/lua/verbose_spec.lua
 - add primary support for additional types (:autocmd, :function, :syntax) to lua verbose
    Note: These can't yet be directly set from lua but once that's possible
    :verbose should work for them hopefully :D
 - add :verbose support for nvim_exec & nvim_command within lua
    Currently auto commands/commands/functions ... can only be defined
    by nvim_exec/nvim_command this adds support for them. Means if those
    Are defined within lua with vim.cmd/nvim_exec :verbose will show their
    location . Though note it'll show the line no on which nvim_exec call was made.
2022-02-28 19:18:49 +06:00
..
2021-09-10 08:48:27 +02:00
2022-02-27 11:56:30 +01:00
2022-02-27 11:56:30 +01:00
2022-02-27 11:56:30 +01:00
2022-01-04 11:07:40 -07:00
2022-02-27 11:56:30 +01:00
2021-09-23 06:59:30 -07:00
2022-01-04 11:07:40 -07:00
2022-02-27 11:56:30 +01:00
2022-02-27 11:56:30 +01:00
2022-02-27 11:56:30 +01:00
2022-01-23 18:38:41 +01:00
2022-02-27 11:56:30 +01:00
2018-10-29 09:32:29 +01:00
2021-09-10 08:48:27 +02:00
2022-02-27 11:56:30 +01:00
2022-02-27 11:56:30 +01:00
2022-02-27 11:56:30 +01:00
2018-10-29 09:55:07 +01:00
2022-01-11 14:14:17 +01:00
2022-02-27 11:56:30 +01:00
2022-01-31 18:09:51 +01:00
2022-02-27 11:56:30 +01:00
2022-01-21 18:08:56 +08:00
2021-09-09 00:37:59 -07:00
2022-01-04 11:07:40 -07:00
2022-02-13 13:44:51 +00:00
2018-08-25 15:25:49 +02:00
2021-04-28 21:29:57 -04:00
2022-01-11 14:14:17 +01:00
2022-02-27 11:56:30 +01:00
2019-03-26 19:55:33 +01:00
2022-02-27 11:56:30 +01:00
2018-10-29 09:55:07 +01:00
2022-01-29 23:15:22 +00:00
2022-02-27 11:56:30 +01:00
2018-10-29 09:55:07 +01:00
2018-10-29 09:55:07 +01:00
2015-08-15 15:25:30 -03:00
2021-11-17 10:02:59 +01:00
2022-02-27 11:56:30 +01:00
2022-02-27 11:56:30 +01:00
2021-04-29 21:08:09 -04:00
2019-03-26 19:55:33 +01:00
2021-09-10 08:48:27 +02:00
2019-08-02 16:20:22 +02:00
2022-02-27 11:56:30 +01:00
2022-02-27 11:56:30 +01:00
2022-02-27 11:56:30 +01:00
2022-02-27 11:56:30 +01:00
2022-02-27 11:56:30 +01:00
2022-02-27 11:56:30 +01:00
2022-02-27 11:56:30 +01:00
2022-01-29 23:15:22 +00:00
2022-02-27 11:56:30 +01:00
2021-04-27 09:21:31 -04:00
2022-02-27 11:56:30 +01:00
2021-04-27 09:21:30 -04:00
2021-05-02 13:00:38 -04:00
2021-05-01 23:19:57 -04:00
2022-02-27 11:56:30 +01:00
2019-08-02 16:20:22 +02:00
2021-09-08 07:24:12 -07:00
2021-09-08 07:24:12 -07:00
2021-05-01 22:29:02 -04:00
2021-05-02 12:53:49 -04:00
2021-11-22 10:53:57 +01:00
2021-05-01 22:29:03 -04:00
2021-04-27 09:21:33 -04:00
2018-10-29 10:01:44 +01:00
2021-04-29 09:27:19 -04:00
2018-10-29 10:01:44 +01:00
2018-10-29 10:01:44 +01:00
2021-04-29 20:42:16 -04:00
2021-04-29 20:42:16 -04:00
2018-10-29 10:01:44 +01:00
2021-04-29 20:42:16 -04:00
2019-03-26 19:55:33 +01:00
2021-04-27 09:21:34 -04:00
2021-05-01 23:19:57 -04:00
2022-02-27 08:21:21 +06:00
2022-02-27 11:56:30 +01:00