2019-10-22 15:19:35 +00:00
|
|
|
call plug#begin(stdpath('data') . '/plugged')
|
|
|
|
|
|
|
|
Plug 'altercation/vim-colors-solarized'
|
|
|
|
Plug 'itchyny/lightline.vim'
|
|
|
|
|
2019-10-24 14:45:15 +00:00
|
|
|
Plug 'Shougo/vimproc.vim', {'do': 'make'}
|
2019-10-22 15:19:35 +00:00
|
|
|
Plug 'rhysd/vim-clang-format'
|
2019-10-24 14:45:15 +00:00
|
|
|
|
2019-10-22 15:19:35 +00:00
|
|
|
Plug 'derekwyatt/vim-fswitch'
|
|
|
|
|
|
|
|
Plug 'tpope/vim-obsession'
|
|
|
|
Plug 'dhruvasagar/vim-prosession'
|
|
|
|
|
|
|
|
Plug 'airblade/vim-gitgutter'
|
|
|
|
Plug 'tpope/vim-fugitive'
|
|
|
|
|
|
|
|
Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' }
|
|
|
|
Plug 'junegunn/fzf.vim'
|
|
|
|
|
|
|
|
Plug 'christoomey/vim-tmux-navigator'
|
|
|
|
|
|
|
|
Plug 'mandlm/vim-split-open'
|
|
|
|
|
|
|
|
Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' }
|
|
|
|
|
|
|
|
Plug 'autozimu/LanguageClient-neovim', {
|
|
|
|
\ 'branch': 'next',
|
|
|
|
\ 'do': 'bash install.sh',
|
|
|
|
\ }
|
|
|
|
|
2019-11-04 08:31:20 +00:00
|
|
|
Plug 'tpope/vim-dispatch'
|
|
|
|
|
2019-11-21 19:36:52 +00:00
|
|
|
Plug 'RRethy/vim-illuminate'
|
|
|
|
|
|
|
|
Plug 'tpope/vim-surround'
|
2020-04-09 06:27:19 +00:00
|
|
|
Plug 'tpope/vim-commentary'
|
2019-11-21 19:36:52 +00:00
|
|
|
|
2020-05-24 10:58:51 +00:00
|
|
|
Plug 'Lenovsky/nuake'
|
|
|
|
|
2020-05-24 11:00:45 +00:00
|
|
|
Plug 'junegunn/vim-peekaboo'
|
|
|
|
|
2020-09-01 12:17:06 +00:00
|
|
|
Plug 'psf/black', { 'branch': 'stable' }
|
|
|
|
|
2019-11-29 14:05:33 +00:00
|
|
|
Plug 'git@gitlab.softwareparadies.de:IDE/swp-vim.git'
|
|
|
|
|
2019-10-22 15:19:35 +00:00
|
|
|
call plug#end()
|
|
|
|
|
|
|
|
" tabwidth
|
|
|
|
set tabstop=4
|
|
|
|
set shiftwidth=4
|
|
|
|
|
2019-10-28 07:39:49 +00:00
|
|
|
" scroll offset
|
|
|
|
set scrolloff=4
|
|
|
|
|
2019-10-22 15:19:35 +00:00
|
|
|
" solarized dark theme
|
2020-05-30 17:38:47 +00:00
|
|
|
silent! colorscheme solarized
|
2019-10-22 15:19:35 +00:00
|
|
|
set background=dark
|
|
|
|
|
|
|
|
" line numbers
|
|
|
|
set number
|
|
|
|
|
2020-04-09 06:26:11 +00:00
|
|
|
" searching
|
|
|
|
set ignorecase
|
|
|
|
set smartcase
|
|
|
|
|
2019-10-22 17:09:13 +00:00
|
|
|
" preview commands
|
|
|
|
set inccommand=split
|
|
|
|
|
2019-11-29 14:04:58 +00:00
|
|
|
" set cursorline in active window
|
|
|
|
augroup CursorLine
|
2019-12-22 11:55:19 +00:00
|
|
|
autocmd!
|
|
|
|
autocmd VimEnter,WinEnter,BufWinEnter * setlocal cursorline
|
|
|
|
autocmd WinLeave * setlocal nocursorline
|
2019-11-29 14:04:58 +00:00
|
|
|
augroup END
|
|
|
|
|
2019-10-22 16:52:41 +00:00
|
|
|
" terminal mode options
|
2019-10-28 07:40:25 +00:00
|
|
|
augroup terminal_mode
|
|
|
|
autocmd!
|
|
|
|
autocmd TermOpen * startinsert
|
|
|
|
augroup END
|
2019-10-22 16:52:41 +00:00
|
|
|
|
2019-10-22 15:19:35 +00:00
|
|
|
" ctags config
|
|
|
|
set tags=./tags;
|
|
|
|
nnoremap <F2> <C-]>
|
|
|
|
|
2019-11-29 14:05:33 +00:00
|
|
|
" swp-vim
|
|
|
|
let g:swpvim_autoformat = 0
|
|
|
|
|
2020-05-30 19:01:45 +00:00
|
|
|
" git-gutter
|
|
|
|
highlight SignColumn ctermbg=0
|
|
|
|
|
2019-10-28 07:40:50 +00:00
|
|
|
" autotag
|
|
|
|
let g:autotagmaxTagsFileSize = 1024 * 1024 * 128
|
|
|
|
|
2019-10-22 15:19:35 +00:00
|
|
|
" lightline config
|
|
|
|
let g:lightline = { 'colorscheme': 'solarized' }
|
|
|
|
|
|
|
|
" clang-format
|
|
|
|
let g:clang_format#auto_format = 1
|
|
|
|
let g:clang_format#enable_fallback_style = 0
|
|
|
|
|
|
|
|
" prosession
|
|
|
|
let g:prosession_tmux_title = 1
|
|
|
|
let g:prosession_per_branch = 1
|
|
|
|
|
|
|
|
" fzf.vim
|
2020-05-24 10:59:28 +00:00
|
|
|
nnoremap <C-P> :GFiles<CR>
|
2019-10-22 17:08:56 +00:00
|
|
|
nnoremap <C-F> :Rg \b<C-R><C-W>\b<CR>
|
2019-10-22 15:19:35 +00:00
|
|
|
|
2019-11-29 14:06:19 +00:00
|
|
|
" vim-illuminate
|
|
|
|
highlight illuminatedWord ctermbg=23
|
|
|
|
|
2019-11-21 19:38:52 +00:00
|
|
|
" split-open
|
|
|
|
nnoremap <C-S> :Split<CR>
|
2020-09-01 12:17:36 +00:00
|
|
|
let g:fzf_action = {
|
|
|
|
\ 'ctrl-s': 'SplitOpen',
|
|
|
|
\ 'ctrl-t': 'tab drop',
|
|
|
|
\ 'ctrl-x': 'split',
|
|
|
|
\ 'ctrl-y': 'vsplit',
|
|
|
|
\ }
|
2019-10-22 15:41:21 +00:00
|
|
|
|
2019-10-22 15:19:35 +00:00
|
|
|
" deoplete
|
|
|
|
let g:deoplete#enable_at_startup = 1
|
2020-05-30 17:43:15 +00:00
|
|
|
silent! call deoplete#custom#source('_', 'matchers', ['matcher_full_fuzzy'])
|
2020-09-01 12:17:36 +00:00
|
|
|
silent! clas deoplete#custom#option({
|
|
|
|
\ 'smart_case': v:true,
|
|
|
|
\ })
|
|
|
|
|
|
|
|
augroup close_preview
|
|
|
|
autocmd InsertLeave * silent! pclose!
|
|
|
|
augroup end
|
|
|
|
|
2020-05-24 11:00:15 +00:00
|
|
|
set completefunc=LanguageClient#complete
|
2019-10-22 15:19:35 +00:00
|
|
|
|
|
|
|
inoremap <expr> <Tab> pumvisible() ? "\<C-n>" : "\<Tab>"
|
|
|
|
inoremap <expr> <S-Tab> pumvisible() ? "\<C-p>" : "\<S-Tab>"
|
|
|
|
|
|
|
|
" LanguageClient-neovim
|
|
|
|
set hidden
|
|
|
|
nnoremap <F5> :call LanguageClient_contextMenu()<CR>
|
2020-05-24 11:00:15 +00:00
|
|
|
nnoremap K :call LanguageClient#textDocument_hover()<CR>
|
|
|
|
nnoremap gd :call LanguageClient#textDocument_definition()<CR>
|
|
|
|
|
2019-10-22 15:19:35 +00:00
|
|
|
let g:LanguageClient_serverCommands = {
|
|
|
|
\ 'python': ['pyls'],
|
2019-11-21 19:38:30 +00:00
|
|
|
\ 'cpp': ['clangd'],
|
2019-10-22 15:19:35 +00:00
|
|
|
\ }
|
|
|
|
|
|
|
|
" autoread/checktime timer {{{
|
|
|
|
set autoread
|
|
|
|
function! CheckTime(timer)
|
|
|
|
checktime
|
|
|
|
endfunction
|
|
|
|
let timerChecktime = timer_start(4000, 'CheckTime', {'repeat': -1})
|
|
|
|
" }}}
|
|
|
|
|
2020-05-24 10:58:51 +00:00
|
|
|
" nuake console
|
|
|
|
nnoremap <F4> :Nuake<CR>
|
|
|
|
inoremap <F4> <C-\><C-n>:Nuake<CR>
|
|
|
|
tnoremap <F4> <C-\><C-n>:Nuake<CR>
|
|
|
|
|
2020-09-01 12:17:06 +00:00
|
|
|
augroup color_column
|
2019-10-28 07:40:25 +00:00
|
|
|
autocmd!
|
2020-09-01 12:17:06 +00:00
|
|
|
autocmd Filetype cpp,python set colorcolumn=101
|
|
|
|
augroup end
|
|
|
|
|
|
|
|
augroup format_black
|
|
|
|
autocmd BufWritePre *.py execute ':Black'
|
|
|
|
augroup end
|