Skip to content

Commit

Permalink
Install copilot and copilotchat
Browse files Browse the repository at this point in the history
  • Loading branch information
tdickman committed Aug 17, 2024
1 parent faeb404 commit 045c86c
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ tmux-continuum
.packages/
kube.tmux
vim/pyvenv
nvim/rplugin/
13 changes: 11 additions & 2 deletions nvim/init.vim
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ call plug#begin()
Plug 'nvim-lua/plenary.nvim'
Plug 'MunifTanjim/nui.nvim'
Plug 'dpayne/CodeGPT.nvim'
" Plug 'git://github.com/tpope/vim-fugitive.git'
"Plug 'jellydn/CopilotChat.nvim'
Plug 'git://github.com/tpope/vim-fugitive.git'
Plug 'jellydn/CopilotChat.nvim'
call plug#end()

filetype plugin indent on
Expand Down Expand Up @@ -84,3 +84,12 @@ let g:codegpt_enable = {
\ 'python': 'Subclass the django.test.TestCase class.',
\ },
\}

lua << EOF
require("CopilotChat").setup {
debug = true, -- Enable debugging
-- See Configuration section for rest
}
EOF

let g:python3_host_prog = '~/.pyenv/versions/neovim3/bin/python'
5 changes: 5 additions & 0 deletions scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
set -e
SCRIPTPATH=`pwd`

# Install <LeftMouse>
pyenv install 3.12
pyenv virtualenv 3.12 neovim3
~/.pyenv/versions/neovim3/bin/python -m pip install pynvim python-dotenv requests prompt-toolkit tiktoken

# Install
sudo add-apt-repository ppa:jonathonf/vim
sudo apt install -y encfs silversearcher-ag vim-gtk3
Expand Down

0 comments on commit 045c86c

Please sign in to comment.