Added the CoPilot into a init.vim

Signed-off-by: Marcin Woźniak <marcin.wozniak@wundermanthompson.com>
This commit is contained in:
Marcin Woźniak 2023-09-04 11:03:00 +02:00
parent cb8504f89b
commit d89bb02c26

View File

@ -342,6 +342,10 @@ EOF
set updatetime=250 set updatetime=250
autocmd! CursorHold,CursorHoldI * lua vim.diagnostic.open_float(nil, {focus=false, scope="cursor"}) autocmd! CursorHold,CursorHoldI * lua vim.diagnostic.open_float(nil, {focus=false, scope="cursor"})
" CoPilot
imap <silent><script><expr> <F1> copilot#Accept("\<CR>")
let g:copilot_no_tab_map = v:true
" Neoformat " Neoformat
let g:neoformat_try_formatprg = 1 let g:neoformat_try_formatprg = 1
let g:neoformat_basic_format_trim = 1 let g:neoformat_basic_format_trim = 1