mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 03:18:16 +00:00
docs: lua error patterns #30240
Co-authored-by: Mathias Fussenegger <f.mathias@zignar.net> Co-authored-by: Ananth Bhaskararaman <antsub@gmail.com>
This commit is contained in:
@@ -208,8 +208,10 @@ vim.inspect = vim.inspect
|
||||
do
|
||||
local tdots, tick, got_line1, undo_started, trailing_nl = 0, 0, false, false, false
|
||||
|
||||
--- Paste handler, invoked by |nvim_paste()| when a conforming UI
|
||||
--- (such as the |TUI|) pastes text into the editor.
|
||||
--- Paste handler, invoked by |nvim_paste()|.
|
||||
---
|
||||
--- Note: This is provided only as a "hook", don't call it directly; call |nvim_paste()| instead,
|
||||
--- which arranges redo (dot-repeat) and invokes `vim.paste`.
|
||||
---
|
||||
--- Example: To remove ANSI color codes when pasting:
|
||||
---
|
||||
|
Reference in New Issue
Block a user