diff --git a/runtime/doc/api.txt b/runtime/doc/api.txt index 62eeed39a4..a6aa2fc585 100644 --- a/runtime/doc/api.txt +++ b/runtime/doc/api.txt @@ -1273,11 +1273,8 @@ nvim_open_term({buf}, {opts}) *nvim_open_term()* Note: To initialize the terminal size, display the buffer in a window first. E.g. for a floating display, 1. Create an empty buffer using |nvim_create_buf()|. - 2. Display it with |nvim_open_win()|. - 3. Call nvim_open_term(). - 4. Then calling |nvim_chan_send()| will process sequences in a virtual terminal with the intended size (defined by the window width/height). diff --git a/runtime/doc/lsp.txt b/runtime/doc/lsp.txt index 2842670d7d..eba865d373 100644 --- a/runtime/doc/lsp.txt +++ b/runtime/doc/lsp.txt @@ -2454,7 +2454,6 @@ To try it out, here is a quickstart example using Copilot: *lsp-copilot* 1. Install Copilot: >sh npm install --global @github/copilot-language-server < - 2. Define a config, (or copy `lsp/copilot.lua` from https://github.com/neovim/nvim-lspconfig): >lua vim.lsp.config('copilot', { @@ -2467,18 +2466,14 @@ To try it out, here is a quickstart example using Copilot: *lsp-copilot* }, }) < - 3. Activate the config: >lua vim.lsp.enable('copilot') < - 4. Sign in to Copilot, or use the `:LspCopilotSignIn` command from https://github.com/neovim/nvim-lspconfig - 5. Enable inline completion: >lua vim.lsp.inline_completion.enable() < - 6. Set a keymap for `vim.lsp.inline_completion.get()` and invoke the keymap. diff --git a/runtime/doc/lua.txt b/runtime/doc/lua.txt index 2a8f248371..9e348328bd 100644 --- a/runtime/doc/lua.txt +++ b/runtime/doc/lua.txt @@ -2261,7 +2261,6 @@ vim.validate({name}, {value}, {validator}, {optional}, {message}) -- ... end < - 2. `vim.validate(spec)` (DEPRECATED) where `spec` is of type `table)` Validates a argument specification. Specs are evaluated in alphanumeric @@ -2469,9 +2468,7 @@ vim.filetype.match({args}) *vim.filetype.match()* The filetype can be detected using one of three methods: 1. Using an existing buffer - 2. Using only a file name - 3. Using only file contents Of these, option 1 provides the most accurate result as it uses both the diff --git a/runtime/doc/treesitter.txt b/runtime/doc/treesitter.txt index 333f5df1b3..5411a81bf7 100644 --- a/runtime/doc/treesitter.txt +++ b/runtime/doc/treesitter.txt @@ -1739,11 +1739,8 @@ Query:iter_captures({node}, {source}, {start_row}, {end_row}, {opts}) The iterator returns four values: 1. the numeric id identifying the capture - 2. the captured node - 3. metadata from any directives processing the match - 4. the match itself Example: how to get captures by name: >lua diff --git a/src/gen/util.lua b/src/gen/util.lua index 6e2898d9d0..9791c4f19b 100644 --- a/src/gen/util.lua +++ b/src/gen/util.lua @@ -319,10 +319,6 @@ local function render_md(node, start_indent, indent, text_width, level, is_list) elseif contains(ntype, { 'list_marker_minus', 'list_marker_star' }) then parts[#parts + 1] = '• ' elseif ntype == 'list_item' then - -- HACK(MariaSolOs): Revert this after the vimdoc parser supports numbered list-items (https://github.com/neovim/tree-sitter-vimdoc/issues/144) - if (node[1].text or ''):match('[2-9]%.') then - parts[#parts + 1] = '\n' - end parts[#parts + 1] = string.rep(' ', indent) local offset = node[1].type == 'list_marker_dot' and 3 or 2 for i, child in ipairs(node) do