this repo has no description
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Rewrite statusline

+91 -57
-8
.gitignore
··· 1 - /nvim/spell 2 - /nvim/.netrwhist 3 - 4 - /nvim/plugged 5 - 6 - /nvim/tags/*/ 7 - !/nvim/tags/.keep 8 - 9 1 /.tmp 10 2 11 3 /tags
+3 -1
nvim/.gitignore
··· 1 - autoload/plug.vim* 1 + /spell 2 + /tags/* 3 + !/nvim/tags
+18
nvim/after/plugin/qf.vim
··· 1 + function! s:MarkQF() abort 2 + if !qf#IsQfWindowOpen() 3 + let g:quickfix_pending = 1 4 + endif 5 + endfunction 6 + 7 + function! s:UnmarkQF() abort 8 + if exists('g:quickfix_pending') 9 + unlet g:quickfix_pending 10 + endif 11 + endfunction 12 + 13 + augroup QfAfter 14 + autocmd! 15 + 16 + autocmd QuickFixCmdPost [^l]* call s:MarkQF() 17 + autocmd Filetype qf call s:UnmarkQF() 18 + augroup END
-1
nvim/autoload/.gitignore
··· 1 - /*.old
nvim/autoload/.keep

This is a binary file and will not be displayed.

+12
nvim/autoload/statusline.vim
··· 1 + " displays a flag if there are unseen quickfix errors 2 + function! statusline#quickfix() 3 + return get(g:, 'quickfix_pending') ? '⎈' : '' 4 + endfunction 5 + 6 + function! statusline#modified() 7 + return &modified ? ' +' : '' 8 + endfunction 9 + 10 + function! statusline#repo() 11 + return gina#component#repo#branch() . ' ' .gina#component#status#preset('fancy') 12 + endfunction
+58 -47
nvim/init.vim
··· 15 15 16 16 if exists('*minpac#init') 17 17 call minpac#init() 18 + " Package manager {{{ 18 19 call minpac#add('k-takata/minpac', {'type': 'opt'}) 19 - 20 + " }}} 21 + " Colorscheme {{{ 20 22 call minpac#add('hauleth/blame.vim') 21 - 23 + " }}} 24 + " Launch screen {{{ 22 25 call minpac#add('mhinz/vim-startify') 23 - 24 - " Languages 26 + " }}} 27 + " Languages {{{ 25 28 call minpac#add('rust-lang/rust.vim') 26 29 call minpac#add('dag/vim-fish') 27 30 call minpac#add('cespare/vim-toml') 28 31 call minpac#add('elixir-lang/vim-elixir') 29 32 call minpac#add('hashivim/vim-hashicorp-tools') 30 33 call minpac#add('posva/vim-vue') 31 - 34 + " }}} 35 + " Git {{{ 32 36 call minpac#add('lambdalisue/gina.vim') 33 - 34 - " Fuzzy find 37 + " }}} 38 + " Project navigation {{{ 35 39 call minpac#add('lotabout/skim', { 'do': '!./install --bin' }) 36 40 call minpac#add('tpope/vim-projectionist') 37 41 call minpac#add('direnv/direnv.vim') 38 - 39 - " File management 42 + " }}} 43 + " File manager {{{ 40 44 call minpac#add('justinmk/vim-dirvish') 41 45 call minpac#add('tpope/vim-eunuch') 42 - 43 - " Completion 46 + " }}} 47 + " Completion {{{ 44 48 call minpac#add('racer-rust/vim-racer') 45 49 call minpac#add('slashmili/alchemist.vim') 46 50 call minpac#add('roxma/nvim-completion-manager') 47 51 call minpac#add('roxma/nvim-cm-racer') 48 - 49 - " Code manipulation 52 + " }}} 53 + " Code manipulation {{{ 50 54 call minpac#add('mjbrownie/swapit') 51 55 call minpac#add('jiangmiao/auto-pairs') 52 56 call minpac#add('tommcdo/vim-exchange') ··· 55 59 call minpac#add('tpope/vim-endwise') 56 60 call minpac#add('tpope/vim-surround') 57 61 call minpac#add('AndrewRadev/splitjoin.vim') 58 - 59 62 call minpac#add('hauleth/sad.vim') 60 - 61 - " Build & Configuration 63 + " }}} 64 + " Task running {{{ 62 65 call minpac#add('skywind3000/asyncrun.vim') 63 66 call minpac#add('romainl/vim-qf') 64 - 65 - " Utils 67 + " }}} 68 + " Utils {{{ 66 69 call minpac#add('wellle/targets.vim') 67 70 call minpac#add('tpope/vim-repeat') 68 71 call minpac#add('tpope/vim-unimpaired') 72 + " }}} 69 73 endif 70 74 " }}} 71 75 " Identation {{{ ··· 74 78 set textwidth=80 75 79 set nowrap linebreak formatoptions+=l 76 80 " }}} 81 + " User interface {{{ 77 82 " Colors {{{ 78 83 set termguicolors 79 84 colorscheme blame 80 85 " }}} 81 - " User interface {{{ 82 - " Ignore all automatic files and folders 86 + " Ignore all automatic files and folders {{{ 83 87 set wildignore=*.o,*~,*.pyc,.git,*/tmp/* 84 - 85 - " Display tabs and trailing spaces visually 88 + " }}} 89 + " Display tabs and trailing spaces visually {{{ 86 90 set list listchars=tab:→\ ,trail:·,nbsp:␣ 87 91 set conceallevel=2 88 - 89 - " Do not show current mode down the bottom 92 + " }}} 93 + " Do not show current mode down the bottom {{{ 90 94 set noshowmode 91 - 92 - " Autowrite files when possible 95 + " }}} 96 + " Autowrite files when possible {{{ 93 97 set nohidden autowriteall 94 - 95 - " Wrap line on movements 98 + " }}} 99 + " Wrap line on movements {{{ 96 100 set whichwrap+=[,] 97 - 98 - " Keep cursor in the middle 101 + " }}} 102 + " Keep cursor in the middle {{{ 99 103 set scrolloff=9999 100 - 101 - " Enable mouse suport 104 + " }}} 105 + " Enable mouse suport {{{ 102 106 set mouse=a 103 - 104 - " Hypen is part of the keyword, if you want to substract then add spaces 107 + " }}} 108 + " Hypen is part of the keyword, if you want to substract then add spaces {{{ 105 109 set iskeyword+=- 106 - 107 - " Show 80 column 110 + " }}} 111 + " Show 80 column {{{ 108 112 let &colorcolumn = &textwidth + 1 109 - 113 + " }}} 114 + " Split in CORRECT places {{{ 110 115 set splitright splitbelow 111 - 112 - " Diff in vertical splits and ignore whitespaces 113 - set diffopt+=vertical,iwhite 114 - 115 - " Statusline 116 - let &laststatus = 2 117 - let &statusline = "%<%2n » %f%{&modified ? ' +' : ''} «%=%4c:%l" 116 + " }}} 117 + " Statusline {{{ 118 + let &laststatus = 2 119 + let &statusline = "" 120 + let &statusline .= " " 121 + let &statusline .= "%{statusline#repo()}" 122 + let &statusline .= "%=" 123 + let &statusline .= "» %f%{statusline#modified()} «" 124 + let &statusline .= "%=" 125 + let &statusline .= "%{statusline#quickfix()}%4c:%l" 126 + let &statusline .= " " 127 + " }}} 118 128 " }}} 119 129 " Search {{{ 120 130 " Smart case searches 121 131 set ignorecase smartcase inccommand=nosplit 122 132 " }}} 123 133 " Backup, swap & undo {{{ 124 - " Turn backup off, since most stuff is in SVN, git etc. anyway... 134 + " Turn backup off, since most stuff is in SVN, git etc. anyway... {{{ 125 135 set nobackup noswapfile 126 - 127 - " Keep undo history across sessions, by storing in file. 136 + " }}} 137 + " Keep undo history across sessions, by storing in file {{{ 128 138 if !isdirectory($HOME . '/.cache/backups') 129 139 silent !mkdir -p ~/.cache/backups > /dev/null 2>&1 130 140 endif ··· 132 142 set undofile 133 143 set undolevels=1000 134 144 set undoreload=10000 145 + " }}} 135 146 " }}} 136 147 " Mappings {{{ 137 148 " Fuzzy file search {{{