From 10a86d8feb0f2a9e5202c95750f482d7d45200ac Mon Sep 17 00:00:00 2001 From: Sergio Ribera <56278796+SergioRibera@users.noreply.github.com> Date: Tue, 26 Dec 2023 16:12:13 -0400 Subject: [PATCH] fix: counnt table content --- lua/cmp-dotenv/dotenv.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/cmp-dotenv/dotenv.lua b/lua/cmp-dotenv/dotenv.lua index 571782a..e9f849c 100644 --- a/lua/cmp-dotenv/dotenv.lua +++ b/lua/cmp-dotenv/dotenv.lua @@ -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 @@ -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