Skip to content

Commit

Permalink
documentation for configurable options
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelb committed Nov 7, 2021
1 parent c483ab7 commit 7425186
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 9 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## v1.0.3
- configurable filetypes

## v1.0.2
- fix issue with API functions & callbacks
- fix double checkhealt crash issue
Expand Down
2 changes: 1 addition & 1 deletion CHECKLIST.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

- check compilation success
- update Cargo.lock: `cargo update`
- Bump Cargo.toml to next version
- cargo fmt --all / cargo check / cargo clippy
- create a version bump commit
- merge
Expand All @@ -12,4 +13,3 @@

- Check CI status
- Check Releases status
- Bump Cargo.toml to next version
10 changes: 5 additions & 5 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "sniprun"
version = "1.0.2"
version = "1.0.3"
authors = ["michaelb <[email protected]>"]
edition = "2018"

Expand Down
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,12 @@ require'sniprun'.setup({
repl_enable = {}, --# enable REPL-like behavior for the given interpreters
repl_disable = {}, --# disable REPL-like behavior for the given interpreters
interpreter_options = {}, --# intepreter-specific options, consult docs / :SnipInfo <name>
interpreter_options = { --# intepreter-specific options, see docs / :SnipInfo <name>
GFM_original = {
use_on_filetypes = {"markdown.pandoc"} --# the 'use_on_filetypes' configuration key is
--# available for every interpreter
}
},
--# you can combo different display modes as desired
display = {
Expand Down Expand Up @@ -317,7 +322,7 @@ EOF
Example, to use the interpreter 'Python3\_jupyter' whenever possible [instead of the 'Python3\_original' default],
`lua require'sniprun'.setup({selected_interpreters = {'Python3_jupyter'}})`

**NOTE**: Some interpreters have specific options and dependencies, such as what version / compiler to use: you cand find more about that with `:SnipInfo <interpreter_name>`
**NOTE**: Some interpreters have specific options and dependencies, such as what version / compiler to use: you cand find more about that with `:SnipInfo <interpreter_name>`. The `use_on_filetypes` key is available for every interpreter (as an `interpreter_option`) and allow sniprun to understand that your particular/custom filetypes are compatible with an interpreter.


Expand Down

0 comments on commit 7425186

Please sign in to comment.