1
0

Compare commits

...

8 Commits

View File

@@ -21,6 +21,7 @@ Plug 'antoyo/vim-licenses'
Plug 'flazz/vim-colorschemes'
Plug 'xiyaowong/transparent.nvim'
Plug 'neoclide/coc.nvim', {'branch': 'release'}
Plug 'github/copilot.vim', {'branch': 'release'}
call plug#end()
filetype plugin indent on
" to ignore plugin indent changes, instead use:
@@ -28,9 +29,9 @@ filetype plugin on
""" General
" indentation
set tabstop=4 " tabs only count for 4 spaces
set shiftwidth=4 " when indenting use 4 spaces
set noexpandtab " use tab characters
set tabstop=2 " tabs only count for 4 spaces
set shiftwidth=2 " when indenting use 4 spaces
set expandtab " don't use tab characters
set autoindent
" view
@@ -58,14 +59,14 @@ function! CheckBackspace() abort
endfunction
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>" :
\ CheckBackspace() ? "\<Tab>" :
\ coc#refresh()
\ coc#refresh()
inoremap <silent><expr> <S-TAB>
\ coc#pum#visible() ? coc#pum#prev(1) : "\<C-h>"
\ coc#expandableOrJumpable() ? "\<C-r>=coc#snippet#prev()\<CR>" :
\ coc#pum#visible() ? coc#pum#prev(1) :
\ CheckBackspace() ? "\<S-Tab>" :
\ coc#expandableOrJumpable() ? "\<C-r>=coc#snippet#prev()\<CR>" :
\ coc#refresh()
let g:coc_disable_startup_warning = 1
@@ -102,8 +103,12 @@ nmap <silent><nowait> gr <Plug>(coc-references)
" syntax highlighting
syntax on
set background=dark
highlight Normal ctermbg=none
colorscheme solarized8_dark
highlight Normal ctermbg=none
highlight Normal guibg=none
highlight NonText guibg=none
highlight Normal ctermbg=none
highlight NonText ctermbg=none
""" Project-Specific Settings
@@ -156,5 +161,11 @@ let g:licenses_authors_name = 'Nicolás Ortega Froysa <nicolas@ortegas.org>'
let g:licenses_default_command = [ 'Affero' ]
" FZF
nnoremap <leader>f :GFiles<CR>
nnoremap <leader>F :tabnew<CR>:GFiles<CR>
nnoremap <leader>f :Files<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