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)