aboutsummaryrefslogtreecommitdiff
path: root/runtime/doc
diff options
context:
space:
mode:
authorMaria José Solano <majosolano99@gmail.com>2023-09-18 11:04:01 -0700
committerLewis Russell <me@lewisr.dev>2023-09-19 14:47:37 +0100
commit5a363ccac8ff5889332bafbf68e7e8d20bca316c (patch)
tree22ea7a0d9bb6b58655288c21bbf9620a359b2117 /runtime/doc
parentcfd4a9dfaf5fd900264a946ca33c4a4f26f66a49 (diff)
downloadrneovim-5a363ccac8ff5889332bafbf68e7e8d20bca316c.tar.gz
rneovim-5a363ccac8ff5889332bafbf68e7e8d20bca316c.tar.bz2
rneovim-5a363ccac8ff5889332bafbf68e7e8d20bca316c.zip
fix(lsp)!: deprecate trim_empty_lines
Diffstat (limited to 'runtime/doc')
-rw-r--r--runtime/doc/deprecated.txt1
-rw-r--r--runtime/doc/lsp.txt9
-rw-r--r--runtime/doc/news.txt1
3 files changed, 2 insertions, 9 deletions
diff --git a/runtime/doc/deprecated.txt b/runtime/doc/deprecated.txt
index 2e9312cf74..407d7ae9fb 100644
--- a/runtime/doc/deprecated.txt
+++ b/runtime/doc/deprecated.txt
@@ -141,6 +141,7 @@ LSP FUNCTIONS
`progress` of |vim.lsp.client|
- *vim.lsp.get_active_clients()* Use |vim.lsp.get_clients()|
- *vim.lsp.for_each_buffer_client()* Use |vim.lsp.get_clients()|
+- *vim.lsp.util.trim_empty_lines()* Use |vim.split()| with `trimempty` instead.
TREESITTER FUNCTIONS
- *vim.treesitter.language.require_language()* Use |vim.treesitter.language.add()|
diff --git a/runtime/doc/lsp.txt b/runtime/doc/lsp.txt
index f0cbce35a3..15292cd7cf 100644
--- a/runtime/doc/lsp.txt
+++ b/runtime/doc/lsp.txt
@@ -2033,15 +2033,6 @@ text_document_completion_list_to_complete_items({result}, {prefix})
See also: ~
• complete-items
-trim_empty_lines({lines}) *vim.lsp.util.trim_empty_lines()*
- Removes empty lines from the beginning and end.
-
- Parameters: ~
- • {lines} (table) list of lines to trim
-
- Return: ~
- (table) trimmed list of lines
-
*vim.lsp.util.try_trim_markdown_code_blocks()*
try_trim_markdown_code_blocks({lines})
Accepts markdown lines and tries to reduce them to a filetype if they
diff --git a/runtime/doc/news.txt b/runtime/doc/news.txt
index c3b9b7fa2c..240eb152d7 100644
--- a/runtime/doc/news.txt
+++ b/runtime/doc/news.txt
@@ -272,6 +272,7 @@ release.
- |vim.lsp.util.get_progress_messages()| Use |vim.lsp.status()| instead.
- |vim.lsp.get_active_clients()| Use |vim.lsp.get_clients()| instead.
- |vim.lsp.for_each_buffer_client()| Use |vim.lsp.get_clients()| instead.
+ - |vim.lsp.util.trim_empty_lines()| Use |vim.split()| with `trimempty` instead.
• `vim.loop` has been renamed to `vim.uv`.