diff options
| author | Ariel D'Alessandro <dalessandro.ariel@gmail.com> | 2023-01-28 14:30:58 +0100 |
|---|---|---|
| committer | Ariel D'Alessandro <dalessandro.ariel@gmail.com> | 2023-01-28 14:30:58 +0100 |
| commit | 0f1176e2e4d780aa3ed4e8e4e424ffd7a3e168f6 (patch) | |
| tree | f5ea211aa480739fda218ec21789178260745f1b /lua | |
| parent | 891b8cfd90a640920e0dc22eab181645e7bbe9b3 (diff) | |
| download | nvim-conf-0f1176e2e4d780aa3ed4e8e4e424ffd7a3e168f6.tar.gz nvim-conf-0f1176e2e4d780aa3ed4e8e4e424ffd7a3e168f6.zip | |
feat: try to fix the disable of plugin, add nix format stypes
Diffstat (limited to 'lua')
| -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 |