Skip to content

Commit

Permalink
Add github copilot
Browse files Browse the repository at this point in the history
  • Loading branch information
vicentebolea committed Jul 29, 2024
1 parent c0af9be commit 67a1494
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .gitconfig
Original file line number Diff line number Diff line change
Expand Up @@ -210,3 +210,5 @@
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
[submodule]
recurse = true
1 change: 1 addition & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -68,3 +68,4 @@
[submodule ".vim/pack/github/start/copilot.vim"]
path = .vim/pack/github/start/copilot.vim
url = https://github.com/github/copilot.vim.git
branch = release
12 changes: 9 additions & 3 deletions .vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,10 @@ autocmd FileType java setlocal sw=4 ts=4 expandtab
autocmd FileType sh,bash,csh setlocal makeprg=shellcheck\ %

" PEP8 compliant
autocmd! FileType python setlocal sw=4 ts=4 sts=4 expandtab textwidth=79 autoindent makeprg=flake8\ %
autocmd! FileType python setlocal sw=4 ts=4 sts=4 expandtab textwidth=100 fileformat=unix autoindent makeprg=flake8\ %

autocmd! FileType typescript setlocal makeprg=npx\ eslint\ -f\ unix\ %
autocmd! FileType vue setlocal makeprg=npx\ eslint\ -f\ unix\ %

autocmd! FileType typescript setlocal makeprg=npx\ eslint\ -f\ unix\ %
autocmd! FileType vue setlocal makeprg=npx\ eslint\ -f\ unix\ %
Expand All @@ -159,7 +162,7 @@ highlight BadWhitespace ctermbg=red guibg=darkred
autocmd BufRead,BufNewFile * match BadWhitespace /\s\+$/

" Disable Copilot by default
au BufNewFile,BufRead * Copilot disable
au BufNewFile,BufRead * :Copilot disable

" }}}
" Gvim {{{
Expand Down Expand Up @@ -206,7 +209,7 @@ nnoremap <silent> <F5> :make
nnoremap <silent> <F8> :TagbarToggle<Enter>
nnoremap <silent> <F9> :NERDTreeToggle<Enter>
try
call togglebg#map("<F7>")
call togglebg#map("<F7>")
catch
endtry

Expand All @@ -233,6 +236,9 @@ ab Q q
ab WQA wqa
ab Wqa wqa
ab E e
ab Copen copen
ab Cclose cclose

"}}}
"vim-airline {{{
let g:airline_left_sep=''
Expand Down

0 comments on commit 67a1494

Please sign in to comment.