diff --git a/lua/plugins/extras_ruby_mine.lua b/lua/plugins/extras_ruby_mine.lua new file mode 100644 index 0000000..7062b23 --- /dev/null +++ b/lua/plugins/extras_ruby_mine.lua @@ -0,0 +1,62 @@ +return { + { + "nvim-treesitter/nvim-treesitter", + opts = { + ensure_installed = { + "ruby", + } + }, + }, + { + "williamboman/mason.nvim", + opts = { + -- https://github.com/williamboman/mason.nvim?tab=readme-ov-file#introduction + -- https://mason-registry.dev/registry/list + ensure_installed = { + "ruby-lsp", + "rubocop", + }, + }, + }, + { + "neovim/nvim-lspconfig", + opts = { + servers = { + ruby_ls = {}, + }, + }, + }, + { + "mfussenegger/nvim-dap", + dependencies = { + "suketa/nvim-dap-ruby", + config = function() + require("dap-ruby").setup() + end, + }, + keys = { + { "te", function() require("dap").repl.open() end, desc = "Debug T(e)rminal" }, + { "tn", function() require("dap").continue() end, desc = "Debug Next/Continue" }, + }, + }, + { + "nvim-neotest/neotest", + dependencies = { + "olimorris/neotest-rspec", + }, + opts = { + adapters = { + ["neotest-rspec"] = { + -- NOTE: By default neotest-rspec uses the system wide rspec gem instead of the one through bundler + -- rspec_cmd = function() + -- return vim.tbl_flatten({ + -- "bundle", + -- "exec", + -- "rspec", + -- }) + -- end, + }, + }, + }, + }, +} diff --git a/lua/plugins/extras_test.lua b/lua/plugins/extras_test.lua deleted file mode 100644 index cc6912e..0000000 --- a/lua/plugins/extras_test.lua +++ /dev/null @@ -1,11 +0,0 @@ -return { - { "olimorris/neotest-rspec" }, - { - "nvim-neotest/neotest", - opts = { - adapters = { - ["neotest-rspec"] = {} - } - }, - }, -} diff --git a/lua/plugins/lsp.lua b/lua/plugins/lsp.lua deleted file mode 100644 index 1338ed4..0000000 --- a/lua/plugins/lsp.lua +++ /dev/null @@ -1,13 +0,0 @@ -return { - { - "williamboman/mason.nvim", - opts = { - -- https://github.com/williamboman/mason.nvim?tab=readme-ov-file#introduction - -- https://mason-registry.dev/registry/list - ensure_installed = { - "ruby-lsp", - "rubocop", - }, - }, - }, -} diff --git a/lua/plugins/treesitter.lua b/lua/plugins/treesitter.lua deleted file mode 100644 index 6ab7d5b..0000000 --- a/lua/plugins/treesitter.lua +++ /dev/null @@ -1,10 +0,0 @@ -return { - { - "nvim-treesitter/nvim-treesitter", - opts = { - ensure_installed = { - "ruby", - } - }, - }, -}