From 0f1176e2e4d780aa3ed4e8e4e424ffd7a3e168f6 Mon Sep 17 00:00:00 2001 From: Ariel D'Alessandro Date: Sat, 28 Jan 2023 14:30:58 +0100 Subject: feat: try to fix the disable of plugin, add nix format stypes --- lua/alpha/telescope/actions.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lua/alpha') 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 -- cgit v1.2.3