diff options
author | Yigit Sever | 2020-07-06 12:47:51 +0300 |
---|---|---|
committer | Yigit Sever | 2020-07-06 12:47:51 +0300 |
commit | 5273c910718edddcdfa5f5ea5596cf429b6f041c (patch) | |
tree | 923f7baebb2c3517868547a181ce6873fd091485 /.config/nvim | |
parent | e269126e602c47693902c63650116e78e1286c35 (diff) | |
download | dotfiles-5273c910718edddcdfa5f5ea5596cf429b6f041c.tar.gz dotfiles-5273c910718edddcdfa5f5ea5596cf429b6f041c.tar.bz2 dotfiles-5273c910718edddcdfa5f5ea5596cf429b6f041c.zip |
tracking nvim
Diffstat (limited to '.config/nvim')
-rwxr-xr-x | .config/nvim/init.vim | 33 |
1 files changed, 20 insertions, 13 deletions
diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index c95114c..098c533 100755 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim | |||
@@ -4,6 +4,9 @@ call plug#begin('~/.local/share/nvim/plugged') | |||
4 | " latex " had to move vimtex to top to avoid a difficult error | 4 | " latex " had to move vimtex to top to avoid a difficult error |
5 | Plug 'lervag/vimtex' | 5 | Plug 'lervag/vimtex' |
6 | 6 | ||
7 | " Vimscript debugger | ||
8 | " Plug 'vim-scripts/Decho' | ||
9 | |||
7 | " completion, 'lsp' and coding {{{ " | 10 | " completion, 'lsp' and coding {{{ " |
8 | 11 | ||
9 | " completion framework | 12 | " completion framework |
@@ -20,16 +23,18 @@ Plug 'ludovicchabant/vim-gutentags' | |||
20 | Plug 'janko/vim-test' | 23 | Plug 'janko/vim-test' |
21 | " type in file send to repl | 24 | " type in file send to repl |
22 | Plug 'jpalardy/vim-slime' | 25 | Plug 'jpalardy/vim-slime' |
23 | |||
24 | " }}} completion, 'lsp' and such " | ||
25 | |||
26 | " language packs | ||
27 | Plug 'sheerun/vim-polyglot' | ||
28 | |||
29 | " snippets to expand | 26 | " snippets to expand |
30 | Plug 'SirVer/ultisnips' | Plug 'honza/vim-snippets' | 27 | Plug 'SirVer/ultisnips' | Plug 'honza/vim-snippets' |
31 | " autopair plugin | 28 | " autopair plugin |
32 | Plug 'tmsvg/pear-tree' | 29 | Plug 'tmsvg/pear-tree' |
30 | " language packs | ||
31 | Plug 'sheerun/vim-polyglot' | ||
32 | " git diff in the sign column | ||
33 | Plug 'airblade/vim-gitgutter' | ||
34 | " completion preview of floating window | ||
35 | Plug 'ncm2/float-preview.nvim' | ||
36 | |||
37 | " }}} completion, 'lsp' and such " | ||
33 | 38 | ||
34 | " heresy {{{ " | 39 | " heresy {{{ " |
35 | 40 | ||
@@ -82,13 +87,13 @@ Plug 'lfv89/vim-interestingwords' | |||
82 | Plug 'machakann/vim-swap' | 87 | Plug 'machakann/vim-swap' |
83 | " jump to location by 2 characters, ` | 88 | " jump to location by 2 characters, ` |
84 | Plug 'justinmk/vim-sneak' | 89 | Plug 'justinmk/vim-sneak' |
90 | " reopen files at your last edit position | ||
91 | Plug 'farmergreg/vim-lastplace' | ||
92 | " flash cursor on jump | ||
93 | Plug 'DanilaMihailov/beacon.nvim' | ||
85 | 94 | ||
86 | " }}} movement, editing " | 95 | " }}} movement, editing " |
87 | 96 | ||
88 | " reopen files at your last edit position | ||
89 | Plug 'farmergreg/vim-lastplace' | ||
90 | " git diff in the sign column | ||
91 | Plug 'airblade/vim-gitgutter' | ||
92 | " Conflict merger, learn how to use this | 97 | " Conflict merger, learn how to use this |
93 | Plug 'christoomey/vim-conflicted' | 98 | Plug 'christoomey/vim-conflicted' |
94 | 99 | ||
@@ -121,7 +126,8 @@ Plug 'tpope/vim-characterize' | |||
121 | Plug 'tpope/vim-commentary' | 126 | Plug 'tpope/vim-commentary' |
122 | " asynchronous build and test dispatcher | 127 | " asynchronous build and test dispatcher |
123 | Plug 'tpope/vim-dispatch' | 128 | Plug 'tpope/vim-dispatch' |
124 | 129 | " continuously updated session files | |
130 | Plug 'tpope/vim-obsession' | ||
125 | " }}} tpope " | 131 | " }}} tpope " |
126 | 132 | ||
127 | " fancy start screen | 133 | " fancy start screen |
@@ -151,6 +157,7 @@ autocmd FileType vimwiki,latex,tex setlocal formatprg=/home/yigit/bin/sentences | |||
151 | 157 | ||
152 | 158 | ||
153 | " TODO: this will get supported on nvim 0.5.0 | 159 | " TODO: this will get supported on nvim 0.5.0 |
160 | " TODO: this too https://www.reddit.com/r/neovim/comments/gxcbui/in_built_lsp_is_amazing/ | ||
154 | " augroup highlight_yank | 161 | " augroup highlight_yank |
155 | " autocmd! | 162 | " autocmd! |
156 | " autocmd TextYankPost * silent! lua require'vim.highlight'.on_yank("IncSearch", 1000) | 163 | " autocmd TextYankPost * silent! lua require'vim.highlight'.on_yank("IncSearch", 1000) |
@@ -208,6 +215,7 @@ let g:clipboard = { | |||
208 | 215 | ||
209 | " Use deoplete. | 216 | " Use deoplete. |
210 | let g:deoplete#enable_at_startup = 1 | 217 | let g:deoplete#enable_at_startup = 1 |
218 | let g:deoplete#sources#biblatex#bibfile = '~/.local/share/vim_biblatex.bib' | ||
211 | 219 | ||
212 | " interact with system clipboard | 220 | " interact with system clipboard |
213 | set clipboard+=unnamedplus | 221 | set clipboard+=unnamedplus |
@@ -460,8 +468,6 @@ let g:startify_custom_header = | |||
460 | "{{{ vimwiki | 468 | "{{{ vimwiki |
461 | let g:vimwiki_list = [{'path': '/home/yigit/Nextcloud/personal_wiki/text', | 469 | let g:vimwiki_list = [{'path': '/home/yigit/Nextcloud/personal_wiki/text', |
462 | \ 'path_html': '/home/yigit/Nextcloud/personal_wiki/html', | 470 | \ 'path_html': '/home/yigit/Nextcloud/personal_wiki/html', |
463 | \ 'auto_diary_index': 1, | ||
464 | \ 'auto_generate_links': 1, | ||
465 | \ 'auto_generate_tags': 1, | 471 | \ 'auto_generate_tags': 1, |
466 | \ 'automatic_nested_syntaxes': 1, | 472 | \ 'automatic_nested_syntaxes': 1, |
467 | \ 'template_path': '/home/yigit/Nextcloud/personal_wiki/templates', | 473 | \ 'template_path': '/home/yigit/Nextcloud/personal_wiki/templates', |
@@ -470,6 +476,7 @@ let g:vimwiki_list = [{'path': '/home/yigit/Nextcloud/personal_wiki/text', | |||
470 | \ 'auto_export': 1, | 476 | \ 'auto_export': 1, |
471 | \ 'auto_tags': 1}] | 477 | \ 'auto_tags': 1}] |
472 | let g:vimwiki_global_ext = 0 | 478 | let g:vimwiki_global_ext = 0 |
479 | let g:vimwiki_hl_headers = 1 | ||
473 | "}}} | 480 | "}}} |
474 | 481 | ||
475 | " {{{ vimtex | 482 | " {{{ vimtex |