Skip to content

Commit

Permalink
fix(telescope-dap-nvim): rewrite plugin spec
Browse files Browse the repository at this point in the history
  • Loading branch information
mehalter committed Jul 10, 2023
1 parent a49863d commit 5083fa8
Showing 1 changed file with 43 additions and 51 deletions.
94 changes: 43 additions & 51 deletions lua/astrocommunity/debugging/telescope-dap-nvim/init.lua
Original file line number Diff line number Diff line change
@@ -1,62 +1,54 @@
local prefix = "<leader>fd"

return {
{
"nvim-telescope/telescope-dap.nvim",
name = "telescope_dap",
event = "User AstroFile",
keys = {
{
prefix .. "c",
"<Cmd>lua require('telescope').extensions.dap.commands{}<CR>",
{ silent = true, expr = false },
mode = {
"n",
},
desc = "Telescope DAP commands",
"nvim-telescope/telescope.nvim",
keys = {
{
prefix .. "c",
"<Cmd>lua require('telescope').extensions.dap.commands{}<CR>",
{ silent = true, expr = false },
mode = {
"n",
},
{
prefix .. "g",
"<Cmd>lua require('telescope').extensions.dap.configurations{}<CR>",
{ silent = true, expr = false },
mode = {
"n",
},
desc = "Telescope DAP configurations",
desc = "Telescope DAP commands",
},
{
prefix .. "g",
"<Cmd>lua require('telescope').extensions.dap.configurations{}<CR>",
{ silent = true, expr = false },
mode = {
"n",
},
{
prefix .. "l",
"<Cmd>lua require('telescope').extensions.dap.list_breakpoints{}<CR>",
{ silent = true, expr = false },
mode = {
"n",
},
desc = "Telescope DAP list breakpoints",
desc = "Telescope DAP configurations",
},
{
prefix .. "l",
"<Cmd>lua require('telescope').extensions.dap.list_breakpoints{}<CR>",
{ silent = true, expr = false },
mode = {
"n",
},
{
prefix .. "v",
"<Cmd>lua require('telescope').extensions.dap.variables{}<CR>",
{ silent = true, expr = false },
mode = {
"n",
},
desc = "Telescope DAP variables",
desc = "Telescope DAP list breakpoints",
},
{
prefix .. "v",
"<Cmd>lua require('telescope').extensions.dap.variables{}<CR>",
{ silent = true, expr = false },
mode = {
"n",
},
{
prefix .. "f",
"<Cmd>lua require('telescope').extensions.dap.frames{}<CR>",
{ silent = true, expr = false },
mode = {
"n",
},
desc = "Telescope DAP frames",
desc = "Telescope DAP variables",
},
{
prefix .. "f",
"<Cmd>lua require('telescope').extensions.dap.frames{}<CR>",
{ 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,
},
dependencies = { "nvim-telescope/telescope-dap.nvim" },
opts = function() require("telescope").load_extension "dap" end,
}

0 comments on commit 5083fa8

Please sign in to comment.