diff --git a/lua/astrocommunity/debugging/telescope-dap-nvim/README.md b/lua/astrocommunity/debugging/telescope-dap-nvim/README.md new file mode 100644 index 000000000..aadf9aea7 --- /dev/null +++ b/lua/astrocommunity/debugging/telescope-dap-nvim/README.md @@ -0,0 +1,8 @@ +# telescope-dap.nvim + +Integration for `nvim-dap` with `telescope.nvim`. + +This plugin is also overriding `dap` internal `ui`, so running any `dap` command, which makes use of the internal ui, will result in a `telescope` prompt. + +**Repository:** + diff --git a/lua/astrocommunity/debugging/telescope-dap-nvim/init.lua b/lua/astrocommunity/debugging/telescope-dap-nvim/init.lua new file mode 100644 index 000000000..ebde55d70 --- /dev/null +++ b/lua/astrocommunity/debugging/telescope-dap-nvim/init.lua @@ -0,0 +1,62 @@ +local prefix = "fd" + +return { + { + "nvim-telescope/telescope-dap.nvim", + name = "telescope_dap", + event = "User AstroFile", + keys = { + { + prefix .. "c", + "lua require('telescope').extensions.dap.commands{}", + { silent = true, expr = false }, + mode = { + "n", + }, + desc = "Telescope DAP commands", + }, + { + prefix .. "g", + "lua require('telescope').extensions.dap.configurations{}", + { silent = true, expr = false }, + mode = { + "n", + }, + desc = "Telescope DAP configurations", + }, + { + prefix .. "l", + "lua require('telescope').extensions.dap.list_breakpoints{}", + { silent = true, expr = false }, + mode = { + "n", + }, + desc = "Telescope DAP list breakpoints", + }, + { + prefix .. "v", + "lua require('telescope').extensions.dap.variables{}", + { silent = true, expr = false }, + mode = { + "n", + }, + desc = "Telescope DAP variables", + }, + { + prefix .. "f", + "lua require('telescope').extensions.dap.frames{}", + { silent = true, expr = false }, + mode = { + "n", + }, + desc = "Telescope DAP frames", + }, + }, + }, + { + "nvim-telescope/telescope.nvim", + optional = true, + dependencies = { "telescope_dap" }, + opts = function() require("telescope").load_extension "dap" end, + }, +}