refactor(config): prefer vim.list.unique for normalization

Also fix some emmyluals warnings
This commit is contained in:
Christian Clason 2025-08-06 13:16:08 +02:00 committed by Christian Clason
parent 4d9916e477
commit 37bcfdc6eb
3 changed files with 12 additions and 4 deletions

View file

@ -52,7 +52,8 @@ local function find_delimiter(bufnr, node, delimiter)
local end_char = { child:end_() }
local trimmed_after_delim
local escaped_delimiter = delimiter:gsub('[%-%.%+%[%]%(%)%$%^%%%?%*]', '%%%1')
trimmed_after_delim = line:sub(end_char[2] + 1):gsub('[%s' .. escaped_delimiter .. ']*', '')
trimmed_after_delim =
assert(line):sub(end_char[2] + 1):gsub('[%s' .. escaped_delimiter .. ']*', '')
return child, #trimmed_after_delim == 0
end
end