From: Stefan Huber Date: Tue, 6 Aug 2024 05:15:42 +0000 (+0200) Subject: plugins: Add gp.nvim X-Git-Url: https://git.sthu.org/?a=commitdiff_plain;h=1b8ddfc605dcfb9b02797f2cf10631d5f96ea76d;p=vimconf.git plugins: Add gp.nvim --- 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