From 6ff0320531716aa67dfb01aafb03026482f5a49e Mon Sep 17 00:00:00 2001 From: Barrett Ruth Date: Fri, 24 Oct 2025 13:48:56 -0400 Subject: [PATCH] cleanup --- plugin/cp.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plugin/cp.lua b/plugin/cp.lua index b4954a4..61f3b3d 100644 --- a/plugin/cp.lua +++ b/plugin/cp.lua @@ -3,8 +3,6 @@ if vim.g.loaded_cp then end vim.g.loaded_cp = 1 -local utils = require('cp.utils') - vim.api.nvim_create_user_command('CP', function(opts) local cp = require('cp') cp.handle_command(opts) @@ -69,6 +67,7 @@ end, { elseif args[2] == 'cache' then return filter_candidates({ 'clear', 'read' }) elseif args[2] == 'interact' then + local utils = require('cp.utils') return filter_candidates(utils.cwd_executables()) elseif args[2] == 'run' or args[2] == 'panel' then local state = require('cp.state')