aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
authorMaximilian Mücke <muecke.maximilian@gmail.com>2025-02-22 11:13:37 +0100
committerGitHub <noreply@github.com>2025-02-22 18:13:37 +0800
commit1ae2d18cb08324885406d599f093c8f14e93e87c (patch)
tree4be74b0c25eaa18ded8b7891251594c0eaa1dbc6 /lua
parentdocs: update configs.md (diff)
downloadnvim-lspconfig-1ae2d18cb08324885406d599f093c8f14e93e87c.tar
nvim-lspconfig-1ae2d18cb08324885406d599f093c8f14e93e87c.tar.gz
nvim-lspconfig-1ae2d18cb08324885406d599f093c8f14e93e87c.tar.bz2
nvim-lspconfig-1ae2d18cb08324885406d599f093c8f14e93e87c.tar.lz
nvim-lspconfig-1ae2d18cb08324885406d599f093c8f14e93e87c.tar.xz
nvim-lspconfig-1ae2d18cb08324885406d599f093c8f14e93e87c.tar.zst
nvim-lspconfig-1ae2d18cb08324885406d599f093c8f14e93e87c.zip
feat: add air lsp (#3614)
* feat: add air lsp * fix(air): use `vim.fs.root()`
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.
+
+ ]],
+ },
+}