From 1b8ddfc605dcfb9b02797f2cf10631d5f96ea76d Mon Sep 17 00:00:00 2001 From: Stefan Huber Date: Tue, 6 Aug 2024 07:15:42 +0200 Subject: [PATCH] plugins: Add gp.nvim --- plugins-full.vim.example | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/plugins-full.vim.example b/plugins-full.vim.example index 8fcf354..31c4001 100644 --- a/plugins-full.vim.example +++ b/plugins-full.vim.example @@ -8,6 +8,8 @@ if has('nvim-0.5') endif Plug 'nvim-treesitter/nvim-treesitter-refactor', {'do': ':TSUpdate'} + + Plug 'robitx/gp.nvim' endif if has('nvim-0.7') @@ -175,6 +177,19 @@ function PluginsConfigFull() }, }, }) + + require("gp").setup({ + providers = { + copilot = { + endpoint = "https://api.githubcopilot.com/chat/completions", + secret = { + "bash", + "-c", + "cat ~/.config/github-copilot/apps.json | sed -e 's/.*oauth_token...//;s/\".*//'", + }, + } + } + }) EOF set foldmethod=expr -- 2.39.5