mirror of
https://github.com/neovim/neovim.git
synced 2025-10-08 02:46:31 +00:00
fix: remove quotes around nil
deprecation alternatives (#36047)
This commit is contained in:
@@ -128,7 +128,7 @@ end
|
|||||||
---@param new_lines string[] list of strings to replace the original
|
---@param new_lines string[] list of strings to replace the original
|
||||||
---@return string[] The modified {lines} object
|
---@return string[] The modified {lines} object
|
||||||
function M.set_lines(lines, A, B, new_lines)
|
function M.set_lines(lines, A, B, new_lines)
|
||||||
vim.deprecate('vim.lsp.util.set_lines()', 'nil', '0.12')
|
vim.deprecate('vim.lsp.util.set_lines()', nil, '0.12')
|
||||||
-- 0-indexing to 1-indexing
|
-- 0-indexing to 1-indexing
|
||||||
local i_0 = A[1] + 1
|
local i_0 = A[1] + 1
|
||||||
-- If it extends past the end, truncate it to the end. This is because the
|
-- If it extends past the end, truncate it to the end. This is because the
|
||||||
@@ -2007,7 +2007,7 @@ end
|
|||||||
---@param lines string[] list of lines
|
---@param lines string[] list of lines
|
||||||
---@return string filetype or "markdown" if it was unchanged.
|
---@return string filetype or "markdown" if it was unchanged.
|
||||||
function M.try_trim_markdown_code_blocks(lines)
|
function M.try_trim_markdown_code_blocks(lines)
|
||||||
vim.deprecate('vim.lsp.util.try_trim_markdown_code_blocks()', 'nil', '0.12')
|
vim.deprecate('vim.lsp.util.try_trim_markdown_code_blocks()', nil, '0.12')
|
||||||
local language_id = assert(lines[1]):match('^```(.*)')
|
local language_id = assert(lines[1]):match('^```(.*)')
|
||||||
if language_id then
|
if language_id then
|
||||||
local has_inner_code_fence = false
|
local has_inner_code_fence = false
|
||||||
|
Reference in New Issue
Block a user