mirror of
https://github.com/LazyVim/starter.git
synced 2026-07-22 04:21:03 +00:00
moved things to ruby.lua
This commit is contained in:
parent
7280c0cef9
commit
ff34f84514
4 changed files with 62 additions and 34 deletions
62
lua/plugins/extras_ruby_mine.lua
Normal file
62
lua/plugins/extras_ruby_mine.lua
Normal 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,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
@ -1,11 +0,0 @@
|
|||
return {
|
||||
{ "olimorris/neotest-rspec" },
|
||||
{
|
||||
"nvim-neotest/neotest",
|
||||
opts = {
|
||||
adapters = {
|
||||
["neotest-rspec"] = {}
|
||||
}
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
@ -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",
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
@ -1,10 +0,0 @@
|
|||
return {
|
||||
{
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
opts = {
|
||||
ensure_installed = {
|
||||
"ruby",
|
||||
}
|
||||
},
|
||||
},
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue