comparison dot_config/nvim/executable_init.vim @ 271:febfe1fb290c

Add yanked text highlighting
author zegervdv <zegervdv@me.com>
date Fri, 03 Jul 2020 17:06:08 +0200
parents 792e295c2ff5
children
comparison
equal deleted inserted replaced
270:792e295c2ff5 271:febfe1fb290c
631 command! -nargs=? -complete=file HGhist call s:HGhist(<q-args>) 631 command! -nargs=? -complete=file HGhist call s:HGhist(<q-args>)
632 632
633 augroup focus_lost 633 augroup focus_lost
634 au! 634 au!
635 au FocusLost * if !&readonly | :wa | endif 635 au FocusLost * if !&readonly | :wa | endif
636 augroup END
637
638 augroup LuaHighlight
639 autocmd!
640 autocmd TextYankPost * silent! lua require'vim.highlight'.on_yank()
636 augroup END 641 augroup END
637 642
638 " Resize splits after window resize {{{ 643 " Resize splits after window resize {{{
639 augroup vim_resize 644 augroup vim_resize
640 au! 645 au!
1283 " }}} 1288 " }}}
1284 " ALE {{{ 1289 " ALE {{{
1285 let g:ale_virtualtext_cursor=1 1290 let g:ale_virtualtext_cursor=1
1286 augroup fmt 1291 augroup fmt
1287 autocmd! 1292 autocmd!
1288 autocmd BufWritePre * undojoin | Neoformat 1293 autocmd BufWritePre * try | undojoin | Neoformat | catch /^Vim\%((\a\+)\)\=:E790/ | finally | silent Neoformat | endtry
1289 augroup END 1294 augroup END
1290 " }}} 1295 " }}}
1291 " }}} 1296 " }}}
1292 1297
1293 function! SendOSCClipboard(lines, regtype) 1298 function! SendOSCClipboard(lines, regtype)