moved things to ruby.lua

This commit is contained in:
Ralph Azucena 2024-04-11 00:28:53 -07:00
parent 7280c0cef9
commit ff34f84514
4 changed files with 62 additions and 34 deletions

View file

@ -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 = {
{ "<leader>te", function() require("dap").repl.open() end, desc = "Debug T(e)rminal" },
{ "<leader>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,
},
},
},
},
}

View file

@ -1,11 +0,0 @@
return {
{ "olimorris/neotest-rspec" },
{
"nvim-neotest/neotest",
opts = {
adapters = {
["neotest-rspec"] = {}
}
},
},
}

View file

@ -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",
},
},
},
}

View file

@ -1,10 +0,0 @@
return {
{
"nvim-treesitter/nvim-treesitter",
opts = {
ensure_installed = {
"ruby",
}
},
},
}