From 313a9b17aae8db8c61c68e4f2e912901cca178a1 Mon Sep 17 00:00:00 2001 From: cubixle Date: Tue, 5 Feb 2019 09:36:07 +0000 Subject: [PATCH] init --- .gitignore | 1 + init.vim | 105 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 106 insertions(+) create mode 100644 .gitignore create mode 100644 init.vim diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ed0e3f9 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +plugged diff --git a/init.vim b/init.vim new file mode 100644 index 0000000..784ee22 --- /dev/null +++ b/init.vim @@ -0,0 +1,105 @@ +set ruler +set number +set nu +syntax enable +set nocursorline +let mapleader="," + +filetype plugin indent on + +let g:syntastic_check_on_open = 1 +let g:syntastic_check_on_wq = 0 + +call plug#begin() +Plug 'fatih/vim-go', { 'do': ':GoInstallBinaries' } +Plug 'scrooloose/nerdtree' +Plug 'scrooloose/nerdcommenter' +Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' } +Plug 'zchee/deoplete-go', { 'do': 'make'} +Plug 'vim-airline/vim-airline' +Plug 'vim-airline/vim-airline-themes' +Plug 'bounceme/highwayman' +Plug 'owickstrom/vim-colors-paramount' +Plug 'ninja/sky' +Plug 'fortes/vim-escuro' +Plug 'fenetikm/falcon' +Plug '~/.fzf' +Plug 'junegunn/fzf.vim' +Plug 'junegunn/limelight.vim' +Plug 'flazz/vim-colorschemes' +call plug#end() + +autocmd VimEnter * Limelight + +let g:NERDTreeNodeDelimiter = "\u00a0" +map :NERDTreeToggle + +let g:go_highlight_build_constraints = 1 +let g:go_highlight_extra_types = 1 +let g:go_highlight_fields = 1 +let g:go_highlight_functions = 1 +let g:go_highlight_methods = 1 +let g:go_highlight_operators = 1 +let g:go_highlight_structs = 1 +let g:go_highlight_types = 1 +let g:go_auto_sameids = 1 +let g:go_fmt_command = "goimports" + +" Error and warning signs. +let g:ale_sign_error = '⤫' +let g:ale_sign_warning = '⚠' + +au FileType go nmap gt :GoDeclsDir + +" Enable deoplete on startup +let g:deoplete#enable_at_startup = 1 + +let g:go_guru_scope = ["..."] +let g:UltiSnipsExpandTrigger="" +let g:UltiSnipsJumpForwardTrigger="" +let g:UltiSnipsJumpBackwardTrigger="" + +set termguicolors +colorscheme falcon +set background=dark + +" An action can be a reference to a function that processes selected lines +function! s:build_quickfix_list(lines) + call setqflist(map(copy(a:lines), '{ "filename": v:val }')) + copen + cc +endfunction + +let g:fzf_action = { + \ 'ctrl-q': function('s:build_quickfix_list'), + \ 'ctrl-t': 'tab split', + \ 'ctrl-x': 'split', + \ 'ctrl-v': 'vsplit' } + +" Default fzf layout +" - down / up / left / right +let g:fzf_layout = { 'down': '~40%' } + +" Customize fzf colors to match your color scheme +let g:fzf_colors = +\ { 'fg': ['fg', 'Normal'], + \ 'bg': ['bg', 'Normal'], + \ 'hl': ['fg', 'Comment'], + \ 'fg+': ['fg', 'CursorLine', 'CursorColumn', 'Normal'], + \ 'bg+': ['bg', 'CursorLine', 'CursorColumn'], + \ 'hl+': ['fg', 'Statement'], + \ 'info': ['fg', 'PreProc'], + \ 'border': ['fg', 'Ignore'], + \ 'prompt': ['fg', 'Conditional'], + \ 'pointer': ['fg', 'Exception'], + \ 'marker': ['fg', 'Keyword'], + \ 'spinner': ['fg', 'Label'], + \ 'header': ['fg', 'Comment'] } + +" Enable per-command history. +" CTRL-N and CTRL-P will be automatically bound to next-history and +" previous-history instead of down and up. If you don't like the change, +" explicitly bind the keys to down and up in your $FZF_DEFAULT_OPTS. +let g:fzf_history_dir = '~/.local/share/fzf-history' + +