summaryrefslogtreecommitdiffstats
path: root/.config/nvim
diff options
context:
space:
mode:
authorYigit Sever2020-01-10 16:31:53 +0300
committerYigit Sever2020-01-10 16:31:53 +0300
commit2ae520d59664cfc825e8d42f422e50446ea1b526 (patch)
tree5f20443bac66712baf8ca0cabf5ecfccca30b06c /.config/nvim
parent049d5ee1c424a14aae84af9aac4e6c2801fbe397 (diff)
parent87a368234ddd0f00b45aed97fdb19e110bd30cc0 (diff)
downloaddotfiles-2ae520d59664cfc825e8d42f422e50446ea1b526.tar.gz
dotfiles-2ae520d59664cfc825e8d42f422e50446ea1b526.tar.bz2
dotfiles-2ae520d59664cfc825e8d42f422e50446ea1b526.zip
Merge branch 'master' of yigitsever.bike:/home/yigit/dots
Diffstat (limited to '.config/nvim')
-rwxr-xr-x.config/nvim/init.vim29
1 files changed, 10 insertions, 19 deletions
diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim
index 1fc1cb6..575c331 100755
--- a/.config/nvim/init.vim
+++ b/.config/nvim/init.vim
@@ -14,10 +14,10 @@ Plug 'sheerun/vim-polyglot'
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
18" Plug 'janko/vim-test' " TODO benched for now but should be useful later
19" open a floating terminal 17" open a floating terminal
20Plug 'voldikss/vim-floaterm' 18Plug 'voldikss/vim-floaterm'
19" run tests (todo: write tests)
20Plug 'janko/vim-test'
21 21
22" snippets to expand 22" snippets to expand
23Plug 'SirVer/ultisnips' | Plug 'honza/vim-snippets' 23Plug 'SirVer/ultisnips' | Plug 'honza/vim-snippets'
@@ -51,9 +51,6 @@ Plug 'lervag/vimtex'
51 51
52" text alignment 52" text alignment
53Plug 'godlygeek/tabular' 53Plug 'godlygeek/tabular'
54" color code highlight
55" Plug 'chrisbra/Colorizer' " TODO benched for now, can't remember the last
56" time this was useful
57" move selections up and down 54" move selections up and down
58Plug 'matze/vim-move' 55Plug 'matze/vim-move'
59" search/select/edit sandwiched textobjects 56" search/select/edit sandwiched textobjects
@@ -65,8 +62,6 @@ Plug 'michaeljsmith/vim-indent-object'
65 62
66" reopen files at your last edit position 63" reopen files at your last edit position
67Plug 'farmergreg/vim-lastplace' 64Plug 'farmergreg/vim-lastplace'
68" toggle, display and navigate marks
69" Plug 'kshenoy/vim-signature' TODO benched for now, never used
70" git diff in the sign column 65" git diff in the sign column
71Plug 'airblade/vim-gitgutter' 66Plug 'airblade/vim-gitgutter'
72" jump to location by 2 characters 67" jump to location by 2 characters
@@ -151,11 +146,14 @@ set scrolloff=4 " Keep n lines above/below cursor
151set number " line numbers 146set number " line numbers
152set foldmethod=marker " folding stuffs 147set foldmethod=marker " folding stuffs
153set title " set terminal title 148set title " set terminal title
154set showmatch " jump to the matching bracket briefly, REMOVE AFTER TESTING
155set linebreak " wrap using 'breakat' character 149set linebreak " wrap using 'breakat' character
156set splitbelow " new split panes will split to below and right 150set splitbelow " new split panes will split to below and right
157set splitright 151set splitright
158set cursorline 152set cursorline " highlight the current line
153set relativenumber " current line actual number, rest are relative
154
155set showmatch " jump to the matching bracket briefly
156set hidden " move freely between buffers
159 157
160set thesaurus+=~/.local/share/thesaurus.txt 158set thesaurus+=~/.local/share/thesaurus.txt
161 159
@@ -209,6 +207,8 @@ nmap <silent> t<C-g> :TestVisit<CR>
209nnoremap <silent> <C-t> :tabnew<CR> 207nnoremap <silent> <C-t> :tabnew<CR>
210" Edit vimrc \ev 208" Edit vimrc \ev
211nnoremap <silent> <Leader>ev :tabnew<CR>:e ~/.config/nvim/init.vim<CR> 209nnoremap <silent> <Leader>ev :tabnew<CR>:e ~/.config/nvim/init.vim<CR>
210" jump to buffer
211nnoremap <leader>b :ls<cr>:b<space>
212 212
213" Up and down are more logical with g.. 213" Up and down are more logical with g..
214nnoremap <silent> k gk 214nnoremap <silent> k gk
@@ -226,20 +226,15 @@ nnoremap <C-l> <C-w>l
226nnoremap <silent> <Leader><cr> :noh<cr> 226nnoremap <silent> <Leader><cr> :noh<cr>
227" Space will toggle folds! 227" Space will toggle folds!
228nnoremap <space> za 228nnoremap <space> za
229" Search mappings: These will make it so that going to the next one in a
230" search will center on the line it's found in.
231" map N Nzz
232" map n nzz
233 229
234" checkmarks on vimwiki 230" checkmarks on vimwiki
235nmap <Leader>v <Plug>VimwikiToggleListItem 231nmap <Leader>v <Plug>VimwikiToggleListItem
236 232
233" sneak using grave, s is for sandwich
237nmap ` <Plug>Sneak_s 234nmap ` <Plug>Sneak_s
238nmap <leader>` <Plug>Sneak_S 235nmap <leader>` <Plug>Sneak_S
239nnoremap ' ` 236nnoremap ' `
240 237
241nmap <leader>i :IndentGuidesToggle<CR>
242
243" separate cut and delete 238" separate cut and delete
244nnoremap x d 239nnoremap x d
245xnoremap x d 240xnoremap x d
@@ -367,10 +362,6 @@ let g:vimtex_quickfix_mode = 0
367let g:polyglot_disabled = ['latex', 'tex', 'ledger'] 362let g:polyglot_disabled = ['latex', 'tex', 'ledger']
368" }}} 363" }}}
369 364
370" {{{ rainbow
371let g:rainbow_active = 0
372" }}}
373
374" {{{ Gutentags 365" {{{ Gutentags
375let g:gutentags_add_default_project_roots = 0 366let g:gutentags_add_default_project_roots = 0
376let g:gutentags_project_root = ['Makefile', '.git'] 367let g:gutentags_project_root = ['Makefile', '.git']