Skip to content

josiahdenton/copilot-chat-context.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

copilot-chat-context.nvim

Improves UX of the CopilotChat.nvim plugin.

  • predefined actions
  • management of contexts (markdown files, selections, urls, filetree, saved code blocks, etc)

Caution

plugin still in a "draft" state, expect some bugs! Please report if you find any.

Install

    {
        "josiahdenton/copilot-chat-context.nvim",
        dependencies = {
            "CopilotC-Nvim/CopilotChat.nvim",
            "echasnovski/mini.nvim", -- optional, uses mini.notify and will fallback to vim.notify if not available
        },
        config = function()
            local context = require("copilot-chat-context")
            context.setup()
            vim.keymap.set("n", "<leader>ai", function()
                context.open()
            end, { desc = "open copilot context panel" })
        end,
        -- other configurations
    },

Usage

generate generate code inline
ccc_generate_example.mov
explain explain selected code / context
ccc_explain_example.mov
ask ask a question
ccc_ask_example.mov

About

a fine grained approach to managing copilot chat context

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages