commit 0a5f281b3587981565d60a9e89f769dcd5544cf5 parent 0bc7056e394dbf093cea13e82aed50de992fe4b5 Author: Alex Balgavy <alex@balgavy.eu> Date: Wed, 8 Jun 2022 13:00:48 +0200 vim: keywordprg for rust Diffstat:
M | vim/after/ftplugin/rust.vim | | | 3 | +++ |
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/vim/after/ftplugin/rust.vim b/vim/after/ftplugin/rust.vim @@ -1,2 +1,5 @@ setlocal formatprg=rustfmt setlocal makeprg=cargo\ build +setlocal keywordprg=rustup\ doc +let b:undo_ftplugin = (exists('b:undo_ftplugin') ? b:undo_ftplugin.'|' : '') +let b:undo_ftplugin .= 'setlocal formatprg< makeprg< keywordprg<'