vim: Split plugin configuration

This commit is contained in:
Oliver Davies 2021-06-04 12:00:00 +01:00
parent d47926061f
commit bd8f16d8b9
7 changed files with 23 additions and 18 deletions

2
rcrc
View file

@ -1,6 +1,6 @@
COPY_ALWAYS="git_template/HEAD"
DOTFILES_DIRS="$HOME/dotfiles-local $HOME/dotfiles"
EXCLUDES="install.sh README.md"
SYMLINK_DIRS="completion-scripts composer bin functions configs"
SYMLINK_DIRS="completion-scripts composer bin functions configs plugins"
TAGS="alacritty git npm php tmux vim zsh"
UNDOTTED="bin"

View file

@ -35,8 +35,7 @@ set smartindent
set tabstop=2 softtabstop=2
set termguicolors
let g:nord_bold_vertical_split_line = 1
let g:nord_cursor_line_number_background = 1
call s:SourceConfigFilesIn('plugins')
colorscheme nord
@ -51,21 +50,6 @@ noremap <down> <nop>
noremap <left> <nop>
noremap <right> <nop>
" Nerdtree
let g:NERDTreeShowHidden=1
let g:NERDTreeWinPos = "right"
nnoremap <leader>ne :NERDTreeToggle<CR>
" Symbol renaming.
nmap <Leader>a <Plug>(coc-codeaction)
nmap <Leader>gd <Plug>(coc-definition)
nmap <Leader>gr <Plug>(coc-references)
nmap <Leader>gi <Plug>(coc-implementation)
nmap <Leader>gt <Plug>(coc-type-definition)
nmap <Leader>sr <Plug>(coc-rename)
nmap <Leader>rf <Plug>(coc-refactor)
nnoremap <silent> K :call <SID>show_documentation()<CR>
autocmd FileType gitcommit highlight ColorColumn ctermbg=8
autocmd FileType gitcommit setlocal colorcolumn=50,72
autocmd FileType gitcommit setlocal textwidth=72

View file

@ -0,0 +1,5 @@
let g:airline_left_alt_sep = ''
let g:airline_left_sep = ''
let g:airline_powerline_fonts = 1
let g:airline_right_alt_sep = ''
let g:airline_right_sep = ''

View file

@ -0,0 +1,2 @@
let g:blamer_delay = 500
let g:blamer_enabled = 1

View file

@ -0,0 +1,8 @@
nmap <Leader>a <Plug>(coc-codeaction)
nmap <Leader>gd <Plug>(coc-definition)
nmap <Leader>gr <Plug>(coc-references)
nmap <Leader>gi <Plug>(coc-implementation)
nmap <Leader>gt <Plug>(coc-type-definition)
nmap <Leader>sr <Plug>(coc-rename)
nmap <Leader>rf <Plug>(coc-refactor)
nnoremap <silent> K :call <SID>show_documentation()<CR>

View file

@ -0,0 +1,4 @@
let g:NERDTreeShowHidden=1
let g:NERDTreeWinPos = "right"
nnoremap <leader>ne :NERDTreeToggle<CR>

View file

@ -0,0 +1,2 @@
let g:nord_bold_vertical_split_line = 1
let g:nord_cursor_line_number_background = 1