Compare commits
4 Commits
9f67c16187
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| 9fc5777f29 | |||
| afc00f7cfc | |||
| 2fc078fd3b | |||
| 7439b8f0a7 |
21
init.vim
21
init.vim
@@ -21,6 +21,7 @@ Plug 'antoyo/vim-licenses'
|
|||||||
Plug 'flazz/vim-colorschemes'
|
Plug 'flazz/vim-colorschemes'
|
||||||
Plug 'xiyaowong/transparent.nvim'
|
Plug 'xiyaowong/transparent.nvim'
|
||||||
Plug 'neoclide/coc.nvim', {'branch': 'release'}
|
Plug 'neoclide/coc.nvim', {'branch': 'release'}
|
||||||
|
Plug 'github/copilot.vim', {'branch': 'release'}
|
||||||
call plug#end()
|
call plug#end()
|
||||||
filetype plugin indent on
|
filetype plugin indent on
|
||||||
" to ignore plugin indent changes, instead use:
|
" to ignore plugin indent changes, instead use:
|
||||||
@@ -58,14 +59,14 @@ function! CheckBackspace() abort
|
|||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
inoremap <silent><expr> <TAB>
|
inoremap <silent><expr> <TAB>
|
||||||
\ coc#pum#visible() ? coc#pum#next(1) :
|
\ coc#pum#visible() ? coc#pum#next(1) :
|
||||||
|
\ CheckBackspace() ? "\<Tab>" :
|
||||||
\ coc#expandableOrJumpable() ? "\<C-r>=coc#snippet#next()\<CR>" :
|
\ coc#expandableOrJumpable() ? "\<C-r>=coc#snippet#next()\<CR>" :
|
||||||
\ CheckBackspace() ? "\<Tab>" :
|
\ coc#refresh()
|
||||||
\ coc#refresh()
|
|
||||||
inoremap <silent><expr> <S-TAB>
|
inoremap <silent><expr> <S-TAB>
|
||||||
\ coc#pum#visible() ? coc#pum#prev(1) : "\<C-h>"
|
\ coc#pum#visible() ? coc#pum#prev(1) :
|
||||||
\ coc#expandableOrJumpable() ? "\<C-r>=coc#snippet#prev()\<CR>" :
|
|
||||||
\ CheckBackspace() ? "\<S-Tab>" :
|
\ CheckBackspace() ? "\<S-Tab>" :
|
||||||
|
\ coc#expandableOrJumpable() ? "\<C-r>=coc#snippet#prev()\<CR>" :
|
||||||
\ coc#refresh()
|
\ coc#refresh()
|
||||||
let g:coc_disable_startup_warning = 1
|
let g:coc_disable_startup_warning = 1
|
||||||
|
|
||||||
@@ -156,5 +157,11 @@ let g:licenses_authors_name = 'Nicolás Ortega Froysa <nicolas@ortegas.org>'
|
|||||||
let g:licenses_default_command = [ 'Affero' ]
|
let g:licenses_default_command = [ 'Affero' ]
|
||||||
|
|
||||||
" FZF
|
" FZF
|
||||||
nnoremap <leader>f :GFiles<CR>
|
nnoremap <leader>f :Files<CR>
|
||||||
nnoremap <leader>F :tabnew<CR>:GFiles<CR>
|
nnoremap <leader>F :tabnew<CR>:Files<CR>
|
||||||
|
nnoremap <leader>g :GFiles<CR>
|
||||||
|
nnoremap <leader>G :tabnew<CR>:GFiles<CR>
|
||||||
|
|
||||||
|
" Copilot
|
||||||
|
imap <silent><script><expr> <C-J> copilot#Accept("\<CR>")
|
||||||
|
let g:copilot_no_tab_map = v:true
|
||||||
|
|||||||
Reference in New Issue
Block a user