From 406369e9659f0c61c439f278d406ac8ace6f1813 Mon Sep 17 00:00:00 2001 From: Hendra Date: Thu, 13 Mar 2025 22:01:25 +0700 Subject: [PATCH] Update cc --- lua/custom/plugins/codecompanion.lua | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/lua/custom/plugins/codecompanion.lua b/lua/custom/plugins/codecompanion.lua index 4a084158..811e467a 100644 --- a/lua/custom/plugins/codecompanion.lua +++ b/lua/custom/plugins/codecompanion.lua @@ -18,6 +18,17 @@ return { strategies = { chat = { adapter = 'anthropic', + slash_commands = { + ['file'] = { + -- Location to the slash command in CodeCompanion + callback = 'strategies.chat.slash_commands.file', + description = 'Select a file using FZF', + opts = { + provider = 'fzf_lua', -- Other options include 'default', 'mini_pick', 'fzf_lua', snacks + contains_code = true, + }, + }, + }, }, inline = { adapter = 'anthropic',