refactor(lsp): correct enable marker name

This commit is contained in:
Yi Ming
2025-07-21 21:06:13 +08:00
parent 2ace4089f8
commit 050b04384e
2 changed files with 9 additions and 9 deletions

View File

@@ -135,25 +135,25 @@ static int foldLevel(linenr_T lnum)
command([[split]])
end)
it('controls the value of `b:_lsp_enable_folding_range`', function()
it('controls the value of `b:_lsp_enabled_folding_range`', function()
eq(
true,
exec_lua(function()
return vim.b._lsp_enable_folding_range
return vim.b._lsp_enabled_folding_range
end)
)
command [[setlocal foldexpr=]]
eq(
nil,
exec_lua(function()
return vim.b._lsp_enable_folding_range
return vim.b._lsp_enabled_folding_range
end)
)
command([[set foldexpr=v:lua.vim.lsp.foldexpr()]])
eq(
true,
exec_lua(function()
return vim.b._lsp_enable_folding_range
return vim.b._lsp_enabled_folding_range
end)
)
end)