mirror of
https://github.com/neovim/neovim.git
synced 2025-12-09 16:12:48 +00:00
docs(lua): reference runtime/lua/vim/_editor.lua
This commit is contained in:
@@ -204,7 +204,7 @@ Docstring format:
|
||||
- Use `<pre>` for code samples.
|
||||
|
||||
Example: the help for |vim.paste()| is generated from a docstring decorating
|
||||
vim.paste in src/nvim/lua/vim.lua like this: >
|
||||
vim.paste in runtime/lua/vim/_editor.lua like this: >
|
||||
|
||||
--- Paste handler, invoked by |nvim_paste()| when a conforming UI
|
||||
--- (such as the |TUI|) pastes text into the editor.
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
-- `inspect` and `lpeg` modules.
|
||||
-- 2. runtime/lua/vim/shared.lua: Code shared between Nvim and tests.
|
||||
-- (This will go away if we migrate to nvim as the test-runner.)
|
||||
-- 3. src/nvim/lua/: Compiled-into Nvim itself.
|
||||
-- 3. runtime/lua/vim/_editor.lua: Compiled-into Nvim itself.
|
||||
--
|
||||
-- Guideline: "If in doubt, put it in the runtime".
|
||||
--
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
--
|
||||
-- The singular purpose of this module is to share code with the Nvim
|
||||
-- test-suite. If, in the future, Nvim itself is used to run the test-suite
|
||||
-- instead of "vanilla Lua", these functions could move to src/nvim/lua/vim.lua
|
||||
-- instead of "vanilla Lua", these functions could move to runtime/lua/vim/_editor.lua
|
||||
|
||||
local vim = vim or {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user