Compare commits
14
Commits
9f67c16187
...
skudonet
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a4b5c7d85e | ||
|
|
32aa03aee3 | ||
|
|
ef4ffbb82a | ||
|
|
8ae8f548e6 | ||
|
|
d589b69bfa | ||
|
|
07f1f36e14 | ||
|
|
4d455f4254 | ||
|
|
86468f80fc | ||
|
|
d8b85232cf | ||
|
|
6950c63002 | ||
|
|
9fc5777f29 | ||
|
|
afc00f7cfc | ||
|
|
2fc078fd3b | ||
|
|
7439b8f0a7 |
@@ -8,7 +8,6 @@ Plug 'vim-airline/vim-airline'
|
||||
Plug 'vim-airline/vim-airline-themes'
|
||||
Plug 'scrooloose/nerdcommenter'
|
||||
Plug 'javier-lopez/sprunge.vim'
|
||||
Plug 'vim-scripts/Trailer-Trash'
|
||||
Plug 'vim-scripts/bad-whitespace'
|
||||
Plug 'junegunn/fzf', { 'do': { -> fzf#install() } }
|
||||
Plug 'junegunn/fzf.vim'
|
||||
@@ -17,10 +16,11 @@ Plug 'vim-scripts/scons.vim'
|
||||
Plug 'danro/rename.vim'
|
||||
Plug 'ciaranm/detectindent'
|
||||
Plug 'jiangmiao/auto-pairs'
|
||||
Plug 'antoyo/vim-licenses'
|
||||
Plug 'https://code.ortegas.org/nortega/vim-licenser.git'
|
||||
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,10 +28,10 @@ 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 autoindent
|
||||
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
|
||||
set number
|
||||
@@ -41,7 +41,8 @@ set hlsearch " highlight found matches
|
||||
set incsearch nohlsearch " turn off hightlight after search
|
||||
set wrap
|
||||
set linebreak
|
||||
set nolist " disable line break on wrap
|
||||
set list " disable line break on wrap
|
||||
set lcs=tab:»-,trail:·,leadmultispace:·,nbsp:·
|
||||
|
||||
" folding
|
||||
set foldmethod=syntax
|
||||
@@ -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
|
||||
|
||||
@@ -150,11 +155,15 @@ let g:airline_symbols.whitespace = 'Ξ'
|
||||
let g:airline#extensions#whitespace#mixed_indent_algo = 2
|
||||
let g:airline#extensions#whitespace#checks = [ 'indent', 'long']
|
||||
|
||||
" vim-licenses
|
||||
let g:licenses_copyright_holders_name = 'Nicolás Ortega Froysa <nicolas@ortegas.org>'
|
||||
let g:licenses_authors_name = 'Nicolás Ortega Froysa <nicolas@ortegas.org>'
|
||||
let g:licenses_default_command = [ 'Affero' ]
|
||||
" vim-licenser
|
||||
let g:licenser_author = 'Skudonet S.L. <community@skudonet.com>'
|
||||
|
||||
" 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
|
||||
|
||||
Reference in New Issue
Block a user