Skip to content

Commit 0b75330

Browse files
committed
Document the playpen flags in SETTINGS
1 parent fc2c656 commit 0b75330

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

autoload/rust.vim

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -405,6 +405,7 @@ function! rust#Play(count, line1, line2, ...) abort
405405
let payload = "format=simple&url=".webapi#http#encodeURI(body)
406406
let res = webapi#http#post(l:rust_shortener_url.'create.php', payload, {})
407407
let url = res.content
408+
408409
redraw | echomsg 'Done: '.url
409410
endfunction
410411

doc/rust.txt

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,19 @@ g:cargo_manifest_name~
9595
let g:cargo_manifest_name = 'Cargo.toml'
9696
<
9797

98+
*g:rust_playpen_url*
99+
g:rust_playpen_url~
100+
Set this option to override the url for the playpen to use: >
101+
let g:rust_playpen_url = 'https://play.rust-lang.org/'
102+
<
103+
104+
*g:rust_shortener_url*
105+
g:rust_shortener_url~
106+
Set this option to override the url for the url shortener: >
107+
let g:rust_shortener_url = 'https://is.gd/'
108+
<
109+
110+
98111
==============================================================================
99112
COMMANDS *rust-commands*
100113

0 commit comments

Comments
 (0)