summaryrefslogtreecommitdiffstats
path: root/.config/nvim
diff options
context:
space:
mode:
Diffstat (limited to '.config/nvim')
-rwxr-xr-x.config/nvim/init.vim96
1 files changed, 52 insertions, 44 deletions
diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim
index fab8f58..9d52e0c 100755
--- a/.config/nvim/init.vim
+++ b/.config/nvim/init.vim
@@ -1,100 +1,102 @@
1"{{{ Plugs 1"{{{ Plugs
2call plug#begin('~/.local/share/nvim/plugged') 2call plug#begin('~/.local/share/nvim/plugged')
3 3
4"completion 4" completion
5Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' } 5Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' }
6Plug 'lionawurscht/deoplete-biblatex' 6Plug 'lionawurscht/deoplete-biblatex'
7Plug 'deoplete-plugins/deoplete-jedi' 7Plug 'deoplete-plugins/deoplete-jedi'
8 8
9" ledger 9" ledger
10Plug 'ledger/vim-ledger' 10Plug 'ledger/vim-ledger'
11"language packs 11" language packs
12Plug 'sheerun/vim-polyglot' 12Plug 'sheerun/vim-polyglot'
13"syntax checking 13" syntax checking
14Plug 'dense-analysis/ale' 14Plug 'dense-analysis/ale'
15"manages tag files 15" manages tag files
16Plug 'ludovicchabant/vim-gutentags' 16Plug 'ludovicchabant/vim-gutentags'
17"run your tests 17" run your tests
18Plug 'janko/vim-test' 18" Plug 'janko/vim-test' " TODO benched for now but should be useful later
19" latex 19" open a floating terminal
20Plug 'lervag/vimtex' 20Plug 'voldikss/vim-floaterm'
21 21
22"snippet solution 22" snippets to expand
23Plug 'SirVer/ultisnips' | Plug 'honza/vim-snippets' 23Plug 'SirVer/ultisnips' | Plug 'honza/vim-snippets'
24"autopair plugin 24" autopair plugin
25Plug 'tmsvg/pear-tree' 25Plug 'tmsvg/pear-tree'
26"colored brackets
27Plug 'luochen1990/rainbow'
28 26
29" Plugin outside ~/.vim/plugged with post-update hook 27" Plugin outside ~/.vim/plugged with post-update hook
30Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' } 28Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' }
31Plug 'junegunn/fzf.vim' 29Plug 'junegunn/fzf.vim'
32 30
33"tree explorer 31" tree explorer
34Plug 'scrooloose/nerdtree' 32" Plug 'scrooloose/nerdtree' TODO benched for now, use netrw
35"displays tags ordered by scope 33" displays tags ordered by scope
36Plug 'majutsushi/tagbar' 34Plug 'majutsushi/tagbar'
37"status/tabline 35" status/tabline
38Plug 'bling/vim-airline' 36Plug 'bling/vim-airline'
37" floating terminal
38Plug 'voldikss/vim-floaterm'
39 39
40" " color theme 40" color theme of $CURRENT_YEAR
41Plug 'joshdick/onedark.vim' 41Plug 'joshdick/onedark.vim'
42 42
43"Personal wiki 43" Personal wiki
44Plug 'vimwiki/vimwiki' 44Plug 'vimwiki/vimwiki'
45"distraction-free writing 45" centers the writing
46Plug 'junegunn/goyo.vim' 46Plug 'junegunn/goyo.vim'
47" highlights the current parapraph
47Plug 'junegunn/limelight.vim' 48Plug 'junegunn/limelight.vim'
49" latex
50Plug 'lervag/vimtex'
48 51
49"text alignment 52" text alignment
50Plug 'godlygeek/tabular' 53Plug 'godlygeek/tabular'
51"color code highlight 54" color code highlight
52Plug 'chrisbra/Colorizer' 55" Plug 'chrisbra/Colorizer' " TODO benched for now, can't remember the last
53"move selections up and down 56" time this was useful
57" move selections up and down
54Plug 'matze/vim-move' 58Plug 'matze/vim-move'
55" search/select/edit sandwiched textobjects (vim-surround) 59" search/select/edit sandwiched textobjects
56Plug 'machakann/vim-sandwich' 60Plug 'machakann/vim-sandwich'
57" provide additional text objects 61" provide additional text objects
58Plug 'wellle/targets.vim' 62Plug 'wellle/targets.vim'
59" indentation level text object 63" indentation level text object
60Plug 'michaeljsmith/vim-indent-object' 64Plug 'michaeljsmith/vim-indent-object'
61" undo history visualizer
62Plug 'mbbill/undotree'
63 65
64"reopen files at your last edit position 66" reopen files at your last edit position
65Plug 'farmergreg/vim-lastplace' 67Plug 'farmergreg/vim-lastplace'
66"toggle, display and navigate marks 68" toggle, display and navigate marks
67Plug 'kshenoy/vim-signature' 69" Plug 'kshenoy/vim-signature' TODO benched for now, never used
68"git diff in the sign column 70" git diff in the sign column
69Plug 'airblade/vim-gitgutter' 71Plug 'airblade/vim-gitgutter'
70"jump to location by 2 characters 72" jump to location by 2 characters
71Plug 'justinmk/vim-sneak' 73Plug 'justinmk/vim-sneak'
72 74
73"splits delete into cut and delete 75" splits delete into cut and delete
74Plug 'svermeulen/vim-cutlass' 76Plug 'svermeulen/vim-cutlass'
75"change text with yank 77" change text with yank
76Plug 'svermeulen/vim-subversive' 78Plug 'svermeulen/vim-subversive'
77"yank history 79" yank history
78Plug 'svermeulen/vim-yoink' 80Plug 'svermeulen/vim-yoink'
79 81
80"enable repeating supported plugin maps with '.' 82" enable repeating supported plugin maps with '.'
81Plug 'tpope/vim-repeat' 83Plug 'tpope/vim-repeat'
82"pairs of handy bracket mappings 84" pairs of handy bracket mappings
83Plug 'tpope/vim-unimpaired' 85Plug 'tpope/vim-unimpaired'
84"git wrapper 86" git wrapper
85Plug 'tpope/vim-fugitive' 87Plug 'tpope/vim-fugitive'
86"increment dates, times & more 88" increment dates, times & more
87Plug 'tpope/vim-speeddating' 89Plug 'tpope/vim-speeddating'
88"search, substitute and abbreviate 90" search, substitute and abbreviate
89Plug 'tpope/vim-abolish' 91Plug 'tpope/vim-abolish'
90"provides ga, show unicode stuff of char under cursor 92" provides ga, show unicode stuff of char under cursor
91Plug 'tpope/vim-characterize' 93Plug 'tpope/vim-characterize'
92"comment helper 94" comment helper
93Plug 'tpope/vim-commentary' 95Plug 'tpope/vim-commentary'
94"asynchronous build and test dispatcher 96" asynchronous build and test dispatcher
95Plug 'tpope/vim-dispatch' 97Plug 'tpope/vim-dispatch'
96 98
97"fancy start screen 99" fancy start screen
98Plug 'mhinz/vim-startify' 100Plug 'mhinz/vim-startify'
99Plug 'ryanoasis/vim-devicons' " asks to be placed last, sure 101Plug 'ryanoasis/vim-devicons' " asks to be placed last, sure
100 102
@@ -112,6 +114,9 @@ autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isT
112" Resize all windows proportionally when the terminal is resized 114" Resize all windows proportionally when the terminal is resized
113" let terminal resize scale the internal windows 115" let terminal resize scale the internal windows
114autocmd VimResized * :wincmd = 116autocmd VimResized * :wincmd =
117
118" Set spell for prose
119autocmd FileType markdown,tex setlocal spell
115"}}} 120"}}}
116 121
117"{{{Misc Settings 122"{{{Misc Settings
@@ -152,6 +157,8 @@ set splitbelow " new split panes will split to below and right
152set splitright 157set splitright
153set cursorline 158set cursorline
154 159
160set thesaurus+=~/.local/share/thesaurus.txt
161
155" persistent undo 162" persistent undo
156set undodir=~/.vim/undodir 163set undodir=~/.vim/undodir
157set undofile 164set undofile
@@ -185,7 +192,8 @@ colorscheme onedark
185" Open the TagBar Plugin <F3> 192" Open the TagBar Plugin <F3>
186nnoremap <silent> <F3> :TagbarToggle<CR> 193nnoremap <silent> <F3> :TagbarToggle<CR>
187" Open NERDTree <F4> 194" Open NERDTree <F4>
188nnoremap <silent> <F4> :NERDTreeToggle<CR> 195" nnoremap <silent> <F4> :NERDTreeToggle<CR>
196let g:floaterm_keymap_toggle = '<F4>'
189" Fix whole buffer via ALE 197" Fix whole buffer via ALE
190nmap <F9> <Plug>(ale_fix) 198nmap <F9> <Plug>(ale_fix)
191 199