From c5463da4408aef73345b5885f7b1865ba7cd099c Mon Sep 17 00:00:00 2001 From: Fredrik Ekre Date: Fri, 7 Jun 2024 12:14:10 +0200 Subject: [PATCH] [nvim] Github Copilot config --- .vimrc | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.vimrc b/.vimrc index c570091..94e2e83 100644 --- a/.vimrc +++ b/.vimrc @@ -50,6 +50,9 @@ call plug#begin('~/.vim/plugged') " Catppuccin color themes Plug 'catppuccin/nvim', { 'as': 'catppuccin' } + + " Github Copilot + Plug 'github/copilot.vim' end call plug#end() @@ -116,6 +119,13 @@ call plug#end() :xnoremap SlimeRegionSend :xnoremap SlimeRegionSend +" Configure Copilot and limit to certain filetypes +let g:copilot_filetypes = { + \ '*': v:false, + \ 'julia': v:true, + \ 'markdown': v:true, +\} + " Save folds between sessions augroup SaveFileView autocmd!