diff options
author | Adam Stankiewicz <sheerun@sher.pl> | 2016-07-30 13:18:40 +0200 |
---|---|---|
committer | Adam Stankiewicz <sheerun@sher.pl> | 2016-07-30 13:19:35 +0200 |
commit | ab61d2ac8eafc9c10097577736602da48ec568ca (patch) | |
tree | c33fcffa647794194376beb91ee35d8d3f8fcc4e /ftplugin | |
parent | f42e1f477ccc8ba4ef756b6d7d16a26686b4b75f (diff) | |
download | vim-polyglot-ab61d2ac8eafc9c10097577736602da48ec568ca.tar.gz vim-polyglot-ab61d2ac8eafc9c10097577736602da48ec568ca.zip |
Update
Diffstat (limited to 'ftplugin')
-rw-r--r-- | ftplugin/javascript.vim | 8 | ||||
-rw-r--r-- | ftplugin/rust.vim | 5 |
2 files changed, 5 insertions, 8 deletions
diff --git a/ftplugin/javascript.vim b/ftplugin/javascript.vim deleted file mode 100644 index 2b085bc1..00000000 --- a/ftplugin/javascript.vim +++ /dev/null @@ -1,8 +0,0 @@ -if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'javascript') == -1 - -setlocal suffixesadd+=.js -if (v:version < 704 || (v:version == 704 && !has('patch002'))) && exists('®expengine') - set re=1 -end - -endif diff --git a/ftplugin/rust.vim b/ftplugin/rust.vim index 2023656e..9943e657 100644 --- a/ftplugin/rust.vim +++ b/ftplugin/rust.vim @@ -195,6 +195,11 @@ let b:undo_ftplugin = " " }}}1 +" Code formatting on save +if get(g:, "rustfmt_autosave", 0) + autocmd BufWritePre *.rs call rustfmt#Format() +endif + augroup END let &cpo = s:save_cpo |