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',