mirror of
https://github.com/LazyVim/starter.git
synced 2026-07-22 12:31:04 +00:00
63 lines
1.4 KiB
Lua
63 lines
1.4 KiB
Lua
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 = {
|
|
-- https://github.com/mfussenegger/nvim-dap/blob/master/doc/dap.txt
|
|
{ "<leader>te", function() require("dap").repl.toggle() end, desc = "Debug Toggle" },
|
|
{ "<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,
|
|
},
|
|
},
|
|
},
|
|
},
|
|
}
|