diff options
Diffstat (limited to 'lua/alpha')
| -rw-r--r-- | lua/alpha/telescope/actions.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lua/alpha/telescope/actions.lua b/lua/alpha/telescope/actions.lua index f996cf4..a3e41ec 100644 --- a/lua/alpha/telescope/actions.lua +++ b/lua/alpha/telescope/actions.lua @@ -105,8 +105,8 @@ M.disable_plugin = function(prompt_bufnr) local parsers = require("nvim-treesitter.parsers") local parser = parsers.get_parser(bufnr) - if type(parser:parse()) == "table" then - vim.notify("Expected number but got table ???", vim.log.levels.ERROR, {}) + if type(parser:parse()) ~= "table" then + vim.notify("Expected table but got something else ???", vim.log.levels.ERROR, {}) P(parser:parse()) return end |