feat: Ruby debugging
This commit is contained in:
@@ -6,11 +6,14 @@
|
||||
"friendly-snippets": { "branch": "main", "commit": "dcd4a586439a1c81357d5b9d26319ae218cc9479" },
|
||||
"git-blame.nvim": { "branch": "master", "commit": "a0282d05adbee80aaf4e2ff35b81b52940b67bed" },
|
||||
"lazy.nvim": { "branch": "main", "commit": "83493db50a434a4c5c648faf41e2ead80f96e478" },
|
||||
"mason-lspconfig.nvim": { "branch": "main", "commit": "21d33d69a81f6351e5a5f49078b2e4f0075c8e73" },
|
||||
"mason-lspconfig.nvim": { "branch": "main", "commit": "55716a879568a498fa236593c8119789054a3b8e" },
|
||||
"mason.nvim": { "branch": "main", "commit": "3b5068f0fc565f337d67a2d315d935f574848ee7" },
|
||||
"nvim-lspconfig": { "branch": "master", "commit": "16295b79410f131c4fa7870c663b4ace6a761fb2" },
|
||||
"nvim-dap": { "branch": "master", "commit": "fc880e82059eb21c0fa896be60146e5f17680648" },
|
||||
"nvim-dap-ruby": { "branch": "main", "commit": "a2248b7b31f6f096b9e847e769afd00060e0aae4" },
|
||||
"nvim-dap-ui": { "branch": "master", "commit": "9720eb5fa2f41988e8770f973cd11b76dd568a5d" },
|
||||
"nvim-lspconfig": { "branch": "master", "commit": "99330586c6e1912c890fc39d19d97571fde660cd" },
|
||||
"nvim-surround": { "branch": "main", "commit": "84a26afce16cffa7e3322cfa80a42cddf60616eb" },
|
||||
"nvim-treesitter": { "branch": "master", "commit": "7ff51f53b0efb6228df2e8539b51bb2e737b77f3" },
|
||||
"nvim-treesitter": { "branch": "master", "commit": "488bec03254207b1dd071be8cb1fb78434b6e777" },
|
||||
"plenary.nvim": { "branch": "master", "commit": "f7adfc4b3f4f91aab6caebf42b3682945fbc35be" },
|
||||
"rspec.nvim": { "branch": "main", "commit": "304682100b152071c2186994690c9646a5d46e05" },
|
||||
"telescope.nvim": { "branch": "master", "commit": "7472420f8734c710bd7009081cef9b97f08a3821" },
|
||||
|
||||
7
nvim/.config/nvim/lua/yock/plugins/dap-ruby.lua
Normal file
7
nvim/.config/nvim/lua/yock/plugins/dap-ruby.lua
Normal file
@@ -0,0 +1,7 @@
|
||||
return {
|
||||
'suketa/nvim-dap-ruby',
|
||||
dependencies = { 'mfussenegger/nvim-dap' },
|
||||
config = function()
|
||||
require('dap-ruby').setup()
|
||||
end,
|
||||
}
|
||||
22
nvim/.config/nvim/lua/yock/plugins/dap-ui.lua
Normal file
22
nvim/.config/nvim/lua/yock/plugins/dap-ui.lua
Normal file
@@ -0,0 +1,22 @@
|
||||
return {
|
||||
'rcarriga/nvim-dap-ui',
|
||||
dependencies = { 'mfussenegger/nvim-dap' },
|
||||
config = function()
|
||||
local dap = require('dap')
|
||||
local dapui = require('dapui')
|
||||
dapui.setup()
|
||||
|
||||
dap.listeners.before.attach.dapui_config = function()
|
||||
dapui.open()
|
||||
end
|
||||
dap.listeners.before.launch.dapui_config = function()
|
||||
dapui.open()
|
||||
end
|
||||
dap.listeners.before.event_terminated.dapui_config = function()
|
||||
dapui.close()
|
||||
end
|
||||
dap.listeners.before.event_exited.dapui_config = function()
|
||||
dapui.close()
|
||||
end
|
||||
end,
|
||||
}
|
||||
@@ -4,4 +4,5 @@ return {
|
||||
'f-person/git-blame.nvim',
|
||||
'kylechui/nvim-surround',
|
||||
'nvim-lua/plenary.nvim',
|
||||
'mfussenegger/nvim-dap',
|
||||
}
|
||||
|
||||
@@ -26,3 +26,13 @@ vim.keymap.set('n', '<leader>ps', function()
|
||||
end)
|
||||
|
||||
vim.keymap.set("n", "<leader>u", vim.cmd.UndotreeToggle)
|
||||
|
||||
-- DAP
|
||||
vim.keymap.set('n', '<leader>dtb', function() require('dap').toggle_breakpoint() end)
|
||||
vim.keymap.set('n', '<leader>dc', function() require('dap').continue() end)
|
||||
vim.keymap.set('n', '<leader>dso', function() require('dap').step_over() end)
|
||||
vim.keymap.set('n', '<leader>dsi', function() require('dap').step_into() end)
|
||||
vim.keymap.set('n', '<leader>duo', function() require('dapui').open() end)
|
||||
vim.keymap.set('n', '<leader>duc', function() require('dapui').close() end)
|
||||
vim.keymap.set('n', '<leader>dut', function() require('dapui').toggle() end)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user