Silicon v2
This commit is contained in:
parent
39fb4dbba7
commit
1c962859e4
2 changed files with 8 additions and 0 deletions
|
@ -97,3 +97,10 @@
|
||||||
creates: ~/.cargo/bin/kondo
|
creates: ~/.cargo/bin/kondo
|
||||||
when:
|
when:
|
||||||
- rust_extras == true
|
- rust_extras == true
|
||||||
|
|
||||||
|
- name: Install silicon
|
||||||
|
shell: ~/.cargo/bin/cargo install silicon
|
||||||
|
args:
|
||||||
|
creates: ~/.cargo/bin/silicon
|
||||||
|
when:
|
||||||
|
- rust_extras == true
|
||||||
|
|
|
@ -179,6 +179,7 @@ let g:rainbow#pairs = [['(', ')'], ['[', ']'], ['{', '}']]
|
||||||
" silicon remaps
|
" silicon remaps
|
||||||
if executable("silicon")
|
if executable("silicon")
|
||||||
vnoremap <Leader>c :'<,'>w !silicon -c -l%:e<CR>
|
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
|
endif
|
||||||
|
|
||||||
function! s:transformed_url(url)
|
function! s:transformed_url(url)
|
||||||
|
|
Loading…
Add table
Reference in a new issue