Prechádzať zdrojové kódy

Update plugins, add mapping to align pipe tables

Also remove invalid pandoc settings.
cinaeco 7 rokov pred
rodič
commit
0721c6b392

+ 1 - 1
vim/autoload/plug.vim

@@ -908,7 +908,7 @@ function! s:finish(pull)
     call add(msgs, "Press 'R' to retry.")
   endif
   if a:pull && len(s:update.new) < len(filter(getline(5, '$'),
-                \ "v:val =~ '^- ' && stridx(v:val, 'Already up-to-date') < 0"))
+                \ "v:val =~ '^- ' && v:val !~# 'Already up.to.date'"))
     call add(msgs, "Press 'D' to see the updated changes.")
   endif
   echo join(msgs, ' ')

+ 1 - 1
vim/plugins.vim

@@ -87,8 +87,8 @@ endif
 " Coding Language Support {{{
 Plug 'LnL7/vim-nix'
 Plug 'elzr/vim-json'
-Plug 'nicklasos/vim-jsx-riot'
 Plug 'pearofducks/ansible-vim'
+Plug 'ryym/vim-riot'
 Plug 'sheerun/vim-polyglot'
 Plug 'tobyS/pdv'
 Plug 'tobyS/vmustache'

+ 3 - 0
vim/settings/alignment.vim

@@ -3,3 +3,6 @@ vmap <Enter> <Plug>(EasyAlign)
 
 " Start interactive EasyAlign for a motion/text object (e.g. gaip)
 nmap ga <Plug>(EasyAlign)
+
+" Shortcut to align markdown pipe tables.
+nmap <Leader>\ gaip*\|

+ 1 - 1
vim/settings/pandoc.vim

@@ -14,7 +14,7 @@ let g:pandoc#formatting#textwidth = 80
 
 " Write `docx` versions of `pandoc` files on save.
 let g:pandoc#command#autoexec_on_writes = 1
-let g:pandoc#command#autoexec_command = 'Pandoc docx --smart'
+let g:pandoc#command#autoexec_command = 'Pandoc docx'
 
 " Correct spelling using first suggestion from spell check.
 map <leader>z 1z=