too many things
This commit is contained in:
84
.config/nvim/lua/plugins/debugging.lua
Normal file
84
.config/nvim/lua/plugins/debugging.lua
Normal file
@@ -0,0 +1,84 @@
|
||||
return {
|
||||
{
|
||||
"mfussenegger/nvim-dap",
|
||||
lazy = true,
|
||||
keys = {
|
||||
{
|
||||
"<leader>db",
|
||||
function() require("dap").toggle_breakpoint() end,
|
||||
desc = "Toggle Breakpoint",
|
||||
},
|
||||
{
|
||||
"<leader>dc",
|
||||
function() require("dap").continue() end,
|
||||
desc = "Continue",
|
||||
},
|
||||
{
|
||||
"<leader>dC",
|
||||
function() require("dap").run_to_cursor() end,
|
||||
desc = "Run to Cursor",
|
||||
},
|
||||
{
|
||||
"<leader>dT",
|
||||
function() require("dap").terminate() end,
|
||||
desc = "Terminate",
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
"rcarriga/nvim-dap-ui",
|
||||
config = true,
|
||||
lazy = true,
|
||||
keys = {
|
||||
{
|
||||
"<leader>du",
|
||||
function() require("dapui").toggle({}) end,
|
||||
desc = "Dap UI",
|
||||
},
|
||||
},
|
||||
dependencies = {
|
||||
"jay-babu/mason-nvim-dap.nvim",
|
||||
"leoluz/nvim-dap-go",
|
||||
"mfussenegger/nvim-dap-python",
|
||||
"nvim-neotest/nvim-nio",
|
||||
"theHamsta/nvim-dap-virtual-text",
|
||||
},
|
||||
},
|
||||
-- debugging virtual text to show output
|
||||
-- {
|
||||
-- "theHamsta/nvim-dap-virtual-text",
|
||||
-- event = "VeryLazy",
|
||||
-- config = true,
|
||||
-- dependencies = {
|
||||
-- "mfussenegger/nvim-dap",
|
||||
-- },
|
||||
-- },
|
||||
-- debugging languages
|
||||
{
|
||||
{
|
||||
-- Automatically sets up LSP, so lsp.lua doesn't include rust.
|
||||
-- Makes debugging work seamlessly.
|
||||
"mrcjkb/rustaceanvim",
|
||||
version = "^5", -- Recommended by module.
|
||||
lazy = true,
|
||||
ft = "rust",
|
||||
dependencies = {
|
||||
"mfussenegger/nvim-dap",
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
"mfussenegger/nvim-dap-python",
|
||||
lazy = true,
|
||||
ft = "python",
|
||||
config = function()
|
||||
local python = vim.fn.expand("~/.local/share/nvim/mason/packages/debugpy/venv/bin/python")
|
||||
require("dap-python").setup(python)
|
||||
end,
|
||||
-- Consider the mappings at
|
||||
-- https://github.com/mfussenegger/nvim-dap-python?tab=readme-ov-file#mappings
|
||||
dependencies = {
|
||||
"mfussenegger/nvim-dap",
|
||||
},
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user