new
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
local M = {}
|
||||
|
||||
function M.foldexpr()
|
||||
local lnum = vim.v.lnum
|
||||
local line = vim.fn.getline( lnum )
|
||||
if line:find( "<think>", 1, true ) then
|
||||
return "a1"
|
||||
elseif line:find( "</think>", 1, true ) then
|
||||
return "s1"
|
||||
else
|
||||
return "="
|
||||
end
|
||||
end
|
||||
|
||||
return M
|
||||
Reference in New Issue
Block a user