Skip to content

Commit

Permalink
fix: counnt table content
Browse files Browse the repository at this point in the history
  • Loading branch information
SergioRibera committed Dec 26, 2023
1 parent 037f160 commit 10a86d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/cmp-dotenv/dotenv.lua
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function M.set_env_variable(name, value, docs)
end

function M.load(opts)
if #M.env_variables > 0 then
if vim.tbl_count(M.env_variables) > 0 then
return
end

Expand Down Expand Up @@ -50,7 +50,7 @@ function M.load(opts)
end

function M.as_completion(opts)
if #M.completion_items > 0 then
if vim.tbl_count(M.completion_items) > 0 then
return M.completion_items
end

Expand Down

0 comments on commit 10a86d8

Please sign in to comment.