Skip to content

Commit

Permalink
feat: Add 'R' support
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewferrier committed Nov 26, 2023
1 parent e0b4d80 commit 89a791b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ navigation and the ability to output variable values.
* `php`
* `ps1` (Powershell)
* `python`
* `r`
* `ruby`
* `rust`
* `sh` (Sh/Bash)
Expand Down Expand Up @@ -299,6 +300,7 @@ If it helps to understand these, you can look at the built-in configurations in
| PHP | :+1: | :+1: | :x: | :+1: | :x: | :x: | :x: |
| Powershell/ps1 | :+1: | :x: | :x: | :x: | :x: | :x: | :x: |
| Python | :+1: | :+1: | :+1: | :+1: | :+1: | :x: | :x: |
| R | :+1: | :x: | :x: | :x: | :x: | :x: | :x: |
| Ruby | :+1: | :+1: | :x: | :+1: | :x: | :x: | :x: |
| Rust | :+1: | :+1: | :+1: | :x: | :+1: | :x: | :x: |
| Swift | :+1: | :x: | :x: | :x: | :x: | :x: | :x: |
Expand Down
6 changes: 6 additions & 0 deletions lua/debugprint/filetypes.lua
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,12 @@ return {
mid_var = "{",
right_var = '}")',
},
["r"] = {
left = 'cat(paste("',
right = '"), file=stderr())',
mid_var = '", ',
right_var = "), file=stderr())",
},
["ruby"] = {
left = 'STDERR.puts "',
right = '"',
Expand Down

0 comments on commit 89a791b

Please sign in to comment.