docs: news, intro, lsp, api #33687

This commit is contained in:
Justin M. Keyes
2025-06-01 14:13:50 -07:00
committed by GitHub
parent ff95d7ff9a
commit 80753332d1
10 changed files with 171 additions and 150 deletions

View File

@@ -1669,10 +1669,7 @@ function vim.api.nvim_notify(msg, log_level, opts) end
---
--- ```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' })
--- ```
---