diff options
Diffstat (limited to '.config/nvim')
| -rw-r--r-- | .config/nvim/after/plugin/abolish.vim | 1 | ||||
| -rwxr-xr-x | .config/nvim/init.vim | 68 | ||||
| -rw-r--r-- | .config/nvim/spell/en.utf-8.add | 2 |
3 files changed, 45 insertions, 26 deletions
diff --git a/.config/nvim/after/plugin/abolish.vim b/.config/nvim/after/plugin/abolish.vim index e313ecb..a295819 100644 --- a/.config/nvim/after/plugin/abolish.vim +++ b/.config/nvim/after/plugin/abolish.vim | |||
| @@ -12,3 +12,4 @@ iabbrev <silent> todaydatetime <C-R>=strftime("%F %T")<CR> | |||
| 12 | iabbrev <silent> todaydate <C-R>=strftime("%F")<CR> | 12 | iabbrev <silent> todaydate <C-R>=strftime("%F")<CR> |
| 13 | iabbrev <silent> pwn English Princeton WordNet | 13 | iabbrev <silent> pwn English Princeton WordNet |
| 14 | iabbrev <silent> omw Open Multilingual WordNet | 14 | iabbrev <silent> omw Open Multilingual WordNet |
| 15 | iabbrev <silent> BC blockchain | ||
diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index fb68190..36e62c0 100755 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim | |||
| @@ -1,6 +1,9 @@ | |||
| 1 | "{{{ Plugs | 1 | "{{{ Plugs |
| 2 | call plug#begin('~/.local/share/nvim/plugged') | 2 | call plug#begin('~/.local/share/nvim/plugged') |
| 3 | 3 | ||
| 4 | " latex " had to move vimtex to top to avoid a difficult error | ||
| 5 | Plug 'lervag/vimtex' | ||
| 6 | |||
| 4 | " completion | 7 | " completion |
| 5 | Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' } | 8 | Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' } |
| 6 | Plug 'lionawurscht/deoplete-biblatex' | 9 | Plug 'lionawurscht/deoplete-biblatex' |
| @@ -26,15 +29,16 @@ Plug 'tmsvg/pear-tree' | |||
| 26 | Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' } | 29 | Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' } |
| 27 | Plug 'junegunn/fzf.vim' | 30 | Plug 'junegunn/fzf.vim' |
| 28 | 31 | ||
| 29 | " tree explorer | 32 | " tree explorer, i don't use this as much but don't like netrw either |
| 30 | Plug 'scrooloose/nerdtree' | 33 | Plug 'scrooloose/nerdtree' |
| 31 | " displays tags ordered by scope | 34 | " displays tags ordered by scope |
| 32 | Plug 'majutsushi/tagbar' | 35 | Plug 'majutsushi/tagbar' |
| 33 | " status/tabline | 36 | " status/tabline |
| 34 | Plug 'bling/vim-airline' | 37 | Plug 'vim-airline/vim-airline' |
| 38 | Plug 'vim-airline/vim-airline-themes' | ||
| 35 | 39 | ||
| 36 | " color theme of $CURRENT_YEAR | 40 | " color theme of $CURRENT_YEAR |
| 37 | Plug 'joshdick/onedark.vim' | 41 | Plug 'bluz71/vim-moonfly-colors' |
| 38 | 42 | ||
| 39 | " Personal wiki | 43 | " Personal wiki |
| 40 | Plug 'vimwiki/vimwiki' | 44 | Plug 'vimwiki/vimwiki' |
| @@ -42,28 +46,24 @@ Plug 'vimwiki/vimwiki' | |||
| 42 | Plug 'junegunn/goyo.vim' | 46 | Plug 'junegunn/goyo.vim' |
| 43 | " highlights the current paragraph | 47 | " highlights the current paragraph |
| 44 | Plug 'junegunn/limelight.vim' | 48 | Plug 'junegunn/limelight.vim' |
| 45 | " latex | ||
| 46 | Plug 'lervag/vimtex' | ||
| 47 | 49 | ||
| 48 | " text alignment | 50 | " text alignment \w :Tab |
| 49 | Plug 'godlygeek/tabular' | 51 | Plug 'godlygeek/tabular' |
| 50 | " move selections up and down | 52 | " move selections up and down with alt+[j,k] |
| 51 | Plug 'matze/vim-move' | 53 | Plug 'matze/vim-move' |
| 52 | " search/select/edit sandwiched textobjects | 54 | " surround text objects; sa, sr and sd |
| 53 | Plug 'machakann/vim-sandwich' | 55 | Plug 'machakann/vim-sandwich' |
| 54 | " provide additional text objects | 56 | " provide additional text objects |
| 55 | Plug 'wellle/targets.vim' | 57 | Plug 'wellle/targets.vim' |
| 56 | " indentation level text object | 58 | " indentation level text object, ia, ii |
| 57 | Plug 'michaeljsmith/vim-indent-object' | 59 | Plug 'michaeljsmith/vim-indent-object' |
| 58 | " visual feedback for substitute | 60 | " visual feedback for substitute holy shit this is amazing |
| 59 | Plug 'markonm/traces.vim' | 61 | Plug 'markonm/traces.vim' |
| 60 | " insert mode completions from tmux panes | ||
| 61 | Plug 'wellle/tmux-complete.vim' | ||
| 62 | " see the contents of registers on "/<CTRL-R> | 62 | " see the contents of registers on "/<CTRL-R> |
| 63 | Plug 'junegunn/vim-peekaboo' | 63 | Plug 'junegunn/vim-peekaboo' |
| 64 | " use <leader>k to highlight multiple words | 64 | " use <leader>k to highlight multiple words |
| 65 | Plug 'lfv89/vim-interestingwords' | 65 | Plug 'lfv89/vim-interestingwords' |
| 66 | " swap delimited items | 66 | " swap delimited items using g>, g< |
| 67 | Plug 'machakann/vim-swap' | 67 | Plug 'machakann/vim-swap' |
| 68 | 68 | ||
| 69 | " reopen files at your last edit position | 69 | " reopen files at your last edit position |
| @@ -72,7 +72,7 @@ Plug 'farmergreg/vim-lastplace' | |||
| 72 | Plug 'airblade/vim-gitgutter' | 72 | Plug 'airblade/vim-gitgutter' |
| 73 | " Conflict merger | 73 | " Conflict merger |
| 74 | Plug 'christoomey/vim-conflicted' | 74 | Plug 'christoomey/vim-conflicted' |
| 75 | " jump to location by 2 characters | 75 | " jump to location by 2 characters, ` |
| 76 | Plug 'justinmk/vim-sneak' | 76 | Plug 'justinmk/vim-sneak' |
| 77 | 77 | ||
| 78 | " splits delete into cut and delete | 78 | " splits delete into cut and delete |
| @@ -102,7 +102,6 @@ Plug 'tpope/vim-dispatch' | |||
| 102 | " fancy start screen | 102 | " fancy start screen |
| 103 | Plug 'mhinz/vim-startify' | 103 | Plug 'mhinz/vim-startify' |
| 104 | Plug 'ryanoasis/vim-devicons' " asks to be placed last, sure | 104 | Plug 'ryanoasis/vim-devicons' " asks to be placed last, sure |
| 105 | |||
| 106 | call plug#end() " required | 105 | call plug#end() " required |
| 107 | 106 | ||
| 108 | "}}} | 107 | "}}} |
| @@ -122,6 +121,19 @@ autocmd VimResized * :wincmd = | |||
| 122 | autocmd FileType markdown,tex setlocal spell | 121 | autocmd FileType markdown,tex setlocal spell |
| 123 | "}}} | 122 | "}}} |
| 124 | 123 | ||
| 124 | " Functions {{{ | ||
| 125 | function! CreatePaper(citekey) | ||
| 126 | exe "e! " . fnameescape("~/Nextcloud/personal_wiki/papers/" . a:citekey . ".wiki") | ||
| 127 | |||
| 128 | let l:timestap="Report Created at: " . strftime("%c") | ||
| 129 | let l:text="= Came From =\n\n= Takeaways =\n\n= Might Go To =\n\n" | ||
| 130 | |||
| 131 | put! =l:timestap | ||
| 132 | put =l:text | ||
| 133 | |||
| 134 | endfunction | ||
| 135 | " }}} Function " | ||
| 136 | |||
| 125 | "{{{Misc Settings | 137 | "{{{Misc Settings |
| 126 | 138 | ||
| 127 | " Use deoplete. | 139 | " Use deoplete. |
| @@ -182,19 +194,23 @@ if executable('rg') | |||
| 182 | set grepprg=rg\ --vimgrep\ --no-heading\ --smart-case | 194 | set grepprg=rg\ --vimgrep\ --no-heading\ --smart-case |
| 183 | endif | 195 | endif |
| 184 | 196 | ||
| 185 | set diffopt+=internal,algorithm:patience | 197 | set diffopt=algorithm:patience |
| 186 | 198 | ||
| 187 | " }}} | 199 | " }}} |
| 188 | 200 | ||
| 189 | "{{{Look and Feel | 201 | "{{{Look and Feel |
| 190 | let g:onedark_terminal_italics=1 | ||
| 191 | set termguicolors | 202 | set termguicolors |
| 192 | colorscheme onedark | 203 | colorscheme moonfly |
| 204 | let g:moonflyUndercurls = 0 | ||
| 193 | 205 | ||
| 194 | " }}} | 206 | " }}} |
| 195 | 207 | ||
| 196 | "{{{ Mappings | 208 | "{{{ Mappings |
| 197 | 209 | ||
| 210 | " If you like "Y" to work from the cursor to the end of line (which is more | ||
| 211 | " logical, but not Vi-compatible) | ||
| 212 | map Y y$ | ||
| 213 | |||
| 198 | " Open the TagBar Plugin <F3> | 214 | " Open the TagBar Plugin <F3> |
| 199 | nnoremap <silent> <F3> :TagbarToggle<CR> | 215 | nnoremap <silent> <F3> :TagbarToggle<CR> |
| 200 | " Open NERDTree <F4> | 216 | " Open NERDTree <F4> |
| @@ -230,8 +246,8 @@ nnoremap <C-l> <C-w>l | |||
| 230 | 246 | ||
| 231 | " Disable highlight when <leader><cr> is pressed | 247 | " Disable highlight when <leader><cr> is pressed |
| 232 | nnoremap <silent> <Leader><cr> :noh<cr> | 248 | nnoremap <silent> <Leader><cr> :noh<cr> |
| 233 | " Space will toggle folds! | 249 | " Space used to toggle folds, now it's x (because x is d) |
| 234 | nnoremap <space> za | 250 | nnoremap <space> "_x |
| 235 | 251 | ||
| 236 | " checkmarks on vimwiki | 252 | " checkmarks on vimwiki |
| 237 | nmap <Leader>v <Plug>VimwikiToggleListItem | 253 | nmap <Leader>v <Plug>VimwikiToggleListItem |
| @@ -287,7 +303,6 @@ let g:tagbar_width = 25 | |||
| 287 | 303 | ||
| 288 | "{{{ Airline | 304 | "{{{ Airline |
| 289 | let g:airline_powerline_fonts = 1 | 305 | let g:airline_powerline_fonts = 1 |
| 290 | let g:airline_theme='onedark' | ||
| 291 | let g:airline#extensions#tabline#formatter = 'unique_tail' | 306 | let g:airline#extensions#tabline#formatter = 'unique_tail' |
| 292 | let g:airline#extensions#tabline#enabled = 1 | 307 | let g:airline#extensions#tabline#enabled = 1 |
| 293 | let g:airline_mode_map = {} | 308 | let g:airline_mode_map = {} |
| @@ -324,11 +339,12 @@ let g:ledger_fillstring = ' ~' | |||
| 324 | 339 | ||
| 325 | "{{{ UltiSnips | 340 | "{{{ UltiSnips |
| 326 | set runtimepath+=~/.vim/my-snippets/ | 341 | set runtimepath+=~/.vim/my-snippets/ |
| 327 | let g:UltiSnipsEditSplit="vertical" | 342 | let g:UltiSnipsEditSplit = "vertical" |
| 328 | let g:UltiSnipsSnippetsDir=$HOME.'/.vim/my-snippets/UltiSnips' | 343 | let g:UltiSnipsSnippetsDir = $HOME.'/.vim/my-snippets/UltiSnips' |
| 329 | 344 | ||
| 330 | " ctrl + l expands the snippet, c + j/k navigates placeholders | 345 | " ctrl + l expands the snippet, c + j/k navigates placeholders |
| 331 | let g:UltiSnipsExpandTrigger = "<C-l>" | 346 | let g:UltiSnipsExpandTrigger = "<C-l>" |
| 347 | let g:UltiSnipsEnableSnipMate = "1" | ||
| 332 | "}}} | 348 | "}}} |
| 333 | 349 | ||
| 334 | "{{{ vim-startify | 350 | "{{{ vim-startify |
| @@ -368,10 +384,10 @@ let g:vimwiki_global_ext = 0 | |||
| 368 | "}}} | 384 | "}}} |
| 369 | 385 | ||
| 370 | " {{{ vimtex | 386 | " {{{ vimtex |
| 371 | let g:vimtex_view_method = 'zathura' | 387 | let g:vimtex_view_method='zathura' |
| 372 | let g:tex_flavor='latex' | 388 | let g:tex_flavor='latex' |
| 373 | let g:vimtex_quickfix_mode = 0 | 389 | let g:vimtex_quickfix_mode=0 |
| 374 | let g:polyglot_disabled = ['latex', 'tex', 'ledger'] | 390 | let g:polyglot_disabled=['latex', 'tex', 'ledger'] |
| 375 | " }}} | 391 | " }}} |
| 376 | 392 | ||
| 377 | " {{{ Gutentags | 393 | " {{{ Gutentags |
diff --git a/.config/nvim/spell/en.utf-8.add b/.config/nvim/spell/en.utf-8.add index 33ac00d..c78ddf8 100644 --- a/.config/nvim/spell/en.utf-8.add +++ b/.config/nvim/spell/en.utf-8.add | |||
| @@ -43,3 +43,5 @@ unsecure | |||
| 43 | replaceability | 43 | replaceability |
| 44 | Kerberos | 44 | Kerberos |
| 45 | IoT | 45 | IoT |
| 46 | Blockchain | ||
| 47 | blockchain | ||
