" deoplete let g:deoplete#enable_at_startup = 1 let g:deoplete#enable_smart_case = 1 let g:deoplete#auto_complete_delay = 150 let g:deoplete#auto_completion_start_length = 4 inoremap deoplete#smart_close_popup().doorboy#map_backspace() inoremap deoplete#smart_close_popup().doorboy#map_backspace() inoremap =deoplete_cr_function() function! s:deoplete_cr_function() abort return deoplete#close_popup() . "\" endfunction " fugitive + vimagit nnoremap gs :Gstatus20+ nnoremap gd :Gvdiff20+ nnoremap gc :Gcommit20+ nnoremap gw :Gwrite20+ nnoremap gb :Gblame20+ nnoremap gm :Magit " incsearch let g:incsearch#auto_nohlsearch = 1 let g:incsearch#consistent_n_direction = 1 let g:incsearch#magic = '\v' map / (incsearch-forward) map ? (incsearch-backward) map g/ (incsearch-stay) map n (incsearch-nohl-n) map N (incsearch-nohl-N) map * (incsearch-nohl-*) map # (incsearch-nohl-#) map g* (incsearch-nohl-g*) map g# (incsearch-nohl-g#) " neosnippet let g:neosnippet#disable_runtime_snippets = { "_": 1 } let g:neosnippet#scope_aliases = {} let g:neosnippet#scope_aliases['scss'] = 'scss,css' let g:neosnippet#scope_aliases['php'] = 'php,html' let g:neosnippet#snippets_directory = '~/.config/nvim/dein/repos/github.com/webgefrickel/vim-snippets/snippets' imap (neosnippet_expand_or_jump) smap (neosnippet_expand_or_jump) xmap (neosnippet_expand_target) " sneak let g:sneak#use_ic_scs = 1 let g:sneak#map_netrw = 1 let g:sneak#s_next = 1 let g:sneak#streak = 1 " ale let g:ale_lint_on_save = 1 let g:ale_lint_on_text_changed = 0 let g:ale_lint_on_enter = 1 let g:ale_linters = { \ 'css': [], \ 'html': ['htmlhint'], \ 'javascript': ['eslint'], \ 'sass': ['sasslint'], \ 'scss': ['sasslint'], \} " fzf nnoremap , :Files nnoremap . :Buffers nnoremap g :GFiles nnoremap c :GFiles? nnoremap l :Lines nnoremap a :Ag nnoremap r :History: " lightline let g:lightline = { \ 'colorscheme': 'hybrid', \ 'active': { \ 'left': [ [ 'mode', 'paste' ], [ 'fugitive', 'filename' ] ], \ 'right': [ [ 'lineinfo' ], [ 'fileformat', 'fileencoding', 'filetype' ] ] \ }, \ 'component_function': { \ 'modified': 'LightlineModified', \ 'readonly': 'LightlineReadonly', \ 'fugitive': 'LightlineFugitive', \ 'filename': 'LightlineFilename', \ 'fileformat': 'LightlineFileformat', \ 'filetype': 'LightlineFiletype', \ 'fileencoding': 'LightlineFileencoding', \ 'mode': 'LightlineMode', \ } \ } function! LightlineModified() return &ft =~ 'help' ? '' : &modified ? 'ɱ' : &modifiable ? '' : 'ɯ' endfunction function! LightlineReadonly() return &ft !~? 'help' && &readonly ? 'ɹ' : '' endfunction function! LightlineFilename() return ('' != LightlineReadonly() ? LightlineReadonly() . ' ' : '') . \ (&ft == 'unite' ? unite#get_status_string() : \ '' != expand('%:t') ? expand('%:t') : '[No Name]') . \ (LightlineModified() != '' ? ' ' . LightlineModified() : '') . \ (ALEGetStatusLine() != 'OK' ? ' - ' . ALEGetStatusLine() : '') endfunction function! LightlineFugitive() if exists("*fugitive#head") let _ = fugitive#head() return strlen(_) ? 'ɓ '._ : '' endif return '' endfunction function! LightlineFileformat() return winwidth(0) > 70 ? &fileformat : '' endfunction function! LightlineFiletype() return winwidth(0) > 70 ? (strlen(&filetype) ? &filetype : 'no ft') : '' endfunction function! LightlineFileencoding() return winwidth(0) > 70 ? (strlen(&fenc) ? &fenc : &enc) : '' endfunction function! LightlineMode() let fname = expand('%:t') return winwidth(0) > 70 ? lightline#mode() : '' endfunction