From 1ae2d18cb08324885406d599f093c8f14e93e87c Mon Sep 17 00:00:00 2001 From: Maximilian Mücke Date: Sat, 22 Feb 2025 11:13:37 +0100 Subject: feat: add air lsp (#3614) * feat: add air lsp * fix(air): use `vim.fs.root()` --- lua/lspconfig/configs/air.lua | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 lua/lspconfig/configs/air.lua (limited to 'lua') 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. + + ]], + }, +} -- cgit v1.2.3-70-g09d2