Regenerate nvim config
This commit is contained in:
@ -0,0 +1,4 @@
|
||||
func <- function(x,
|
||||
y) {
|
||||
|
||||
}
|
||||
@ -0,0 +1,2 @@
|
||||
# some
|
||||
# comment
|
||||
12
config/neovim/store/nvim-treesitter/tests/indent/r/cond.R
Normal file
12
config/neovim/store/nvim-treesitter/tests/indent/r/cond.R
Normal file
@ -0,0 +1,12 @@
|
||||
x <- 10
|
||||
|
||||
if (x > 3) {
|
||||
x <- 3
|
||||
} else if (x < 3) {
|
||||
x <- -3
|
||||
} else {
|
||||
if (x > 0) {
|
||||
x <- 1
|
||||
}
|
||||
x <- 0
|
||||
}
|
||||
18
config/neovim/store/nvim-treesitter/tests/indent/r/func.R
Normal file
18
config/neovim/store/nvim-treesitter/tests/indent/r/func.R
Normal file
@ -0,0 +1,18 @@
|
||||
foo <- function(x) {
|
||||
bar <- function(a, b, c) {
|
||||
return(a + b + c)
|
||||
}
|
||||
return(
|
||||
bar(
|
||||
x,
|
||||
1,
|
||||
2
|
||||
)
|
||||
)
|
||||
}
|
||||
|
||||
baz <- function(l) {
|
||||
inner(l, function(x) {
|
||||
|
||||
})
|
||||
}
|
||||
17
config/neovim/store/nvim-treesitter/tests/indent/r/loop.R
Normal file
17
config/neovim/store/nvim-treesitter/tests/indent/r/loop.R
Normal file
@ -0,0 +1,17 @@
|
||||
x <- 1
|
||||
|
||||
while (x < 10) {
|
||||
x <- x + 1
|
||||
break
|
||||
}
|
||||
|
||||
for (i in 1:3) {
|
||||
x <- x + 1
|
||||
}
|
||||
|
||||
repeat {
|
||||
x <- x + 1
|
||||
if (x > 100) {
|
||||
break
|
||||
}
|
||||
}
|
||||
10
config/neovim/store/nvim-treesitter/tests/indent/r/pipe.R
Normal file
10
config/neovim/store/nvim-treesitter/tests/indent/r/pipe.R
Normal file
@ -0,0 +1,10 @@
|
||||
mtcars |>
|
||||
head(
|
||||
n = 6L
|
||||
) |>
|
||||
subset(
|
||||
cyl > 3
|
||||
)
|
||||
|
||||
mtcars %>%
|
||||
head()
|
||||
Reference in New Issue
Block a user