Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
glepnir committed Jan 18, 2025
1 parent a21b57f commit 8b082e9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lua/internal/server.lua
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,8 @@ function server.create()
for _, line in ipairs(root[filename]) do
local item = vim.split(line, '%s', { trimempty = true })
for _, word in ipairs(item) do
if not vim.list_contains(data, word) then
-- no need store number in cache
if tonumber(word) == nil and not vim.list_contains(data, word) then
table.insert(data, word)
end
end
Expand Down

0 comments on commit 8b082e9

Please sign in to comment.