From 4d561aced31dc2eb6f9192a0ed8a313e0959ed5f Mon Sep 17 00:00:00 2001 From: Maximilian Muecke Date: Wed, 26 Jul 2023 22:40:09 +0200 Subject: [PATCH] feat(lang): add R support --- lua/lazyvim/plugins/extras/lang/r.lua | 30 +++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 lua/lazyvim/plugins/extras/lang/r.lua diff --git a/lua/lazyvim/plugins/extras/lang/r.lua b/lua/lazyvim/plugins/extras/lang/r.lua new file mode 100644 index 00000000..92683efa --- /dev/null +++ b/lua/lazyvim/plugins/extras/lang/r.lua @@ -0,0 +1,30 @@ +return { + { + "nvim-treesitter/nvim-treesitter", + opts = function(_, opts) + if type(opts.ensure_installed) == "table" then + vim.list_extend(opts.ensure_installed, { "r" }) + end + end, + }, + { + "neovim/nvim-lspconfig", + opts = { + servers = { + r_language_server = {}, + }, + }, + }, + { + "nvim-neotest/neotest", + optional = true, + dependencies = { + "shunsambongi/neotest-testthat", + }, + opts = { + adapters = { + ["neotest-testthat"] = {}, + }, + }, + }, +}