local command = vim.api.nvim_create_user_command local dein = require("dein") local ddc_change_filter = require("user.plugins.ddc").change_filter command("DeinDelete", function() require("user.plugins.dein").check_uninstall() end, {}) command("Recache", function() dein.recache_runtimepath() vim.loader.reset() vim.cmd("qall") end, {}) command("DDCFuzzyFilter", function(opts) ddc_change_filter(opts.bang, "fuzzy") end, { bang = true }) command("DDCNormalFilter", function(opts) ddc_change_filter(opts.bang, "normal") end, { bang = true }) command("DDCEchoFilter", function() ddc_change_filter(1, "") end, {})