mirror of
https://github.com/tiyn/dotfiles.git
synced 2026-04-27 08:11:37 +02:00
Nvim: R now instantly and automatically displays plots.
This commit is contained in:
11
.Rprofile
Normal file
11
.Rprofile
Normal file
@@ -0,0 +1,11 @@
|
||||
if (!interactive()) {
|
||||
options(device = function(...) pdf("Rplot.pdf"))
|
||||
|
||||
.Last <- function() {
|
||||
if (dev.cur() > 1) {
|
||||
dev.off()
|
||||
system("xdg-open Rplot.pdf", wait = FALSE)
|
||||
Sys.sleep(2)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,7 +1,7 @@
|
||||
set statusbar-h-padding 0
|
||||
set statusbar-v-padding 0
|
||||
set guioptions none
|
||||
set page-padding 1
|
||||
#set page-padding 1
|
||||
map u scroll full-up
|
||||
map d scroll full-down
|
||||
map D toggle_page_mode
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
[Desktop Entry]
|
||||
Type=Application
|
||||
Name=Image viewer
|
||||
Exec=sxiv -a %u
|
||||
Exec=imv %u
|
||||
|
||||
Reference in New Issue
Block a user