From 1c962859e4e16e1bcf00dc60ed6689b343e60210 Mon Sep 17 00:00:00 2001 From: Anthony Cicchetti Date: Mon, 3 Aug 2020 13:26:00 -0400 Subject: [PATCH] Silicon v2 --- playbooks/roles/rust/tasks/main.yml | 7 +++++++ vim/vimrc | 1 + 2 files changed, 8 insertions(+) diff --git a/playbooks/roles/rust/tasks/main.yml b/playbooks/roles/rust/tasks/main.yml index 35d5368..f96c326 100644 --- a/playbooks/roles/rust/tasks/main.yml +++ b/playbooks/roles/rust/tasks/main.yml @@ -97,3 +97,10 @@ creates: ~/.cargo/bin/kondo when: - rust_extras == true + +- name: Install silicon + shell: ~/.cargo/bin/cargo install silicon + args: + creates: ~/.cargo/bin/silicon + when: + - rust_extras == true diff --git a/vim/vimrc b/vim/vimrc index 19fab4a..6b7ca3d 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -179,6 +179,7 @@ let g:rainbow#pairs = [['(', ')'], ['[', ']'], ['{', '}']] " silicon remaps if executable("silicon") vnoremap c :'<,'>w !silicon -c -l%:e + vnoremap :exec(":'<,'>w !silicon -c -l" . &filetype) endif function! s:transformed_url(url)