Skip to content

Commit 1ae2d18

Browse files
authored
feat: add air lsp (#3614)
* feat: add air lsp * fix(air): use `vim.fs.root()`
1 parent 7c8cb61 commit 1ae2d18

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

lua/lspconfig/configs/air.lua

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
return {
2+
default_config = {
3+
cmd = { 'air', 'language-server' },
4+
filetypes = { 'r' },
5+
root_dir = vim.fs.root(0, { 'air.toml', '.air.toml', '.git' }),
6+
single_file_support = true,
7+
},
8+
docs = {
9+
description = [[
10+
https://github.com/posit-dev/air
11+
12+
Air is an R formatter and language server, written in Rust.
13+
14+
Refer to the [documentation](https://posit-dev.github.io/air/editors.html) for more details.
15+
16+
]],
17+
},
18+
}

0 commit comments

Comments
 (0)