summaryrefslogtreecommitdiffstatshomepage
path: root/runtime/lua/vim
diff options
context:
space:
mode:
authorMaria Solano <majosolano99@gmail.com>2025-10-05 14:39:23 -0700
committerGitHub <noreply@github.com>2025-10-05 14:39:23 -0700
commitbcc9242bc75ef374ae37cd2f23fca7a44f905d4e (patch)
treec1061c5830270d53de333a72687f8f8c56aa6f37 /runtime/lua/vim
parent53a4540047dbe6375c4658ca6ec8d4a092da9265 (diff)
fix: remove quotes around `nil` deprecation alternatives (#36047)
Diffstat (limited to 'runtime/lua/vim')
-rw-r--r--runtime/lua/vim/lsp/util.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/lua/vim/lsp/util.lua b/runtime/lua/vim/lsp/util.lua
index e81042b9dd..73b064708f 100644
--- a/runtime/lua/vim/lsp/util.lua
+++ b/runtime/lua/vim/lsp/util.lua
@@ -128,7 +128,7 @@ end
---@param new_lines string[] list of strings to replace the original
---@return string[] The modified {lines} object
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
local i_0 = A[1] + 1
-- 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
---@return string filetype or "markdown" if it was unchanged.
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('^```(.*)')
if language_id then
local has_inner_code_fence = false