]> git.rmz.io Git - dotfiles.git/blob - nvim/lua/plugins/lang/ruby.lua
vim: do not set pastetoggle in nvim
[dotfiles.git] / nvim / lua / plugins / lang / ruby.lua
1 return {
2 { "nvim-treesitter/nvim-treesitter",
3 opts = { ensure_installed = { "ruby" } },
4 },
5 { "neovim/nvim-lspconfig",
6 ---@class PluginLspOpts
7 opts = {
8 ---@type lspconfig.options
9 servers = {
10 ruby_lsp = { enabled = true, },
11 rubocop = { enabled = true, },
12 },
13 },
14 },
15 { "williamboman/mason.nvim",
16 opts = { ensure_installed = { "erb-formatter", "erb-lint" } },
17 },
18 {
19 "mfussenegger/nvim-dap",
20 dependencies = {
21 "suketa/nvim-dap-ruby",
22 config = function()
23 require("dap-ruby").setup()
24 end,
25 },
26 },
27 { "stevearc/conform.nvim",
28 opts = {
29 formatters_by_ft = {
30 ruby = { "rubocop" },
31 eruby = { "erb_format" },
32 },
33 },
34 },
35 { "nvim-neotest/neotest",
36 dependencies = {
37 "olimorris/neotest-rspec",
38 },
39 opts = {
40 adapters = {
41 ["neotest-rspec"] = {
42 -- NOTE: By default neotest-rspec uses the system wide rspec gem instead of the one through bundler
43 -- rspec_cmd = function()
44 -- return vim.tbl_flatten({
45 -- "bundle",
46 -- "exec",
47 -- "rspec",
48 -- })
49 -- end,
50 },
51 },
52 },
53 },
54 }