summaryrefslogtreecommitdiffstats
path: root/.config/nvim/init.vim
diff options
context:
space:
mode:
Diffstat (limited to '.config/nvim/init.vim')
-rwxr-xr-x.config/nvim/init.vim20
1 files changed, 11 insertions, 9 deletions
diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim
index c76c68a..d36cd82 100755
--- a/.config/nvim/init.vim
+++ b/.config/nvim/init.vim
@@ -135,18 +135,11 @@ function! CreatePaper(citekey)
135 135
136 put! =l:timestap 136 put! =l:timestap
137 put =l:text 137 put =l:text
138
139endfunction 138endfunction
140" }}} Function " 139" }}} Function "
141 140
142"{{{Misc Settings 141"{{{Misc Settings
143 142
144let g:slime_target = "tmux"
145let g:slime_paste_file = "$HOME/.slime_paste"
146let g:slime_default_config = {"socket_name": get(split($TMUX, ","), 0), "target_pane": "{last}"}
147let g:slime_no_mappings = 1
148nmap <c-\> <Plug>SlimeParagraphSend
149
150" Use deoplete. 143" Use deoplete.
151let g:deoplete#enable_at_startup = 1 144let g:deoplete#enable_at_startup = 1
152 145
@@ -213,11 +206,13 @@ set diffopt=algorithm:patience
213set termguicolors 206set termguicolors
214colorscheme moonfly 207colorscheme moonfly
215let g:moonflyUndercurls = 0 208let g:moonflyUndercurls = 0
216
217" }}} 209" }}}
218 210
219"{{{ Mappings 211"{{{ Mappings
220 212
213" call CreatePaper on word below cursor
214nnoremap <leader>cp :call CreatePaper(expand('<cword>'))<CR>
215
221" If you like "Y" to work from the cursor to the end of line (which is more 216" If you like "Y" to work from the cursor to the end of line (which is more
222" logical, but not Vi-compatible) 217" logical, but not Vi-compatible)
223map Y y$ 218map Y y$
@@ -343,7 +338,6 @@ let g:ale_pattern_options = {'\.wiki$': {'ale_enabled': 0}}
343"}}} 338"}}}
344 339
345"{{{ Ledger 340"{{{ Ledger
346" let g:ledger_extra_options = '--pedantic --explicit --check-payees'
347let g:ledger_maxwidth = 48 341let g:ledger_maxwidth = 48
348let g:ledger_fillstring = ' ~' 342let g:ledger_fillstring = ' ~'
349"}}} 343"}}}
@@ -409,3 +403,11 @@ let g:gutentags_generate_on_missing = 1
409let g:gutentags_generate_on_write = 1 403let g:gutentags_generate_on_write = 1
410let g:gutentags_generate_on_empty_buffer = 0 404let g:gutentags_generate_on_empty_buffer = 0
411" }}} 405" }}}
406
407" vim-slime {{{
408let g:slime_target = "tmux"
409let g:slime_paste_file = "$HOME/.slime_paste"
410let g:slime_default_config = {"socket_name": get(split($TMUX, ","), 0), "target_pane": "{last}"}
411let g:slime_no_mappings = 1
412nmap <c-CR> <Plug>SlimeParagraphSend
413" }}} Slime