Silicon v2

This commit is contained in:
Anthony Cicchetti 2020-08-03 13:26:00 -04:00
parent 39fb4dbba7
commit 1c962859e4
2 changed files with 8 additions and 0 deletions

View file

@ -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

View file

@ -179,6 +179,7 @@ let g:rainbow#pairs = [['(', ')'], ['[', ']'], ['{', '}']]
" silicon remaps
if executable("silicon")
vnoremap <Leader>c :'<,'>w !silicon -c -l%:e<CR>
vnoremap <Leader><S-c> :<BS><BS><BS><BS><BS>exec(":'<,'>w !silicon -c -l" . &filetype)<CR>
endif
function! s:transformed_url(url)