aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua')
-rw-r--r--lua/lspconfig/configs/air.lua18
1 files changed, 18 insertions, 0 deletions
diff --git a/lua/lspconfig/configs/air.lua b/lua/lspconfig/configs/air.lua
new file mode 100644
index 00000000..f53095b7
--- /dev/null
+++ b/lua/lspconfig/configs/air.lua
@@ -0,0 +1,18 @@
+return {
+ default_config = {
+ cmd = { 'air', 'language-server' },
+ filetypes = { 'r' },
+ root_dir = vim.fs.root(0, { 'air.toml', '.air.toml', '.git' }),
+ single_file_support = true,
+ },
+ docs = {
+ description = [[
+https://github.com/posit-dev/air
+
+Air is an R formatter and language server, written in Rust.
+
+Refer to the [documentation](https://posit-dev.github.io/air/editors.html) for more details.
+
+ ]],
+ },
+}