mirror of
https://github.com/neovim/neovim.git
synced 2025-09-07 03:48:18 +00:00
doc: Lua [ci skip] #11378
- Rework :help lua-commands - Rename if_lua.txt => lua.txt
This commit is contained in:
@@ -167,8 +167,7 @@ end
|
||||
---
|
||||
--- Example: To remove ANSI color codes when pasting:
|
||||
--- <pre>
|
||||
--- vim.paste = (function()
|
||||
--- local overridden = vim.paste
|
||||
--- vim.paste = (function(overridden)
|
||||
--- return function(lines, phase)
|
||||
--- for i,line in ipairs(lines) do
|
||||
--- -- Scrub ANSI color codes from paste input.
|
||||
@@ -176,7 +175,7 @@ end
|
||||
--- end
|
||||
--- overridden(lines, phase)
|
||||
--- end
|
||||
--- end)()
|
||||
--- end)(vim.paste)
|
||||
--- </pre>
|
||||
---
|
||||
--@see |paste|
|
||||
|
Reference in New Issue
Block a user