mirror of
https://github.com/neovim/neovim.git
synced 2025-09-24 20:18:32 +00:00
docs: news, intro, lsp, api #33687
This commit is contained in:
@@ -991,10 +991,7 @@ Buffer nvim_create_buf(Boolean listed, Boolean scratch, Error *err)
|
||||
///
|
||||
/// ```lua
|
||||
/// vim.api.nvim_create_user_command('TermHl', function()
|
||||
/// local b = vim.api.nvim_create_buf(false, true)
|
||||
/// local chan = vim.api.nvim_open_term(b, {})
|
||||
/// vim.api.nvim_chan_send(chan, table.concat(vim.api.nvim_buf_get_lines(0, 0, -1, false), '\n'))
|
||||
/// vim.api.nvim_win_set_buf(0, b)
|
||||
/// vim.api.nvim_open_term(0, {})
|
||||
/// end, { desc = 'Highlights ANSI termcodes in curbuf' })
|
||||
/// ```
|
||||
///
|
||||
|
Reference in New Issue
Block a user