-
-
Notifications
You must be signed in to change notification settings - Fork 250
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(telescope-dap-nvim): rewrite plugin spec (#401)
- Loading branch information
Showing
1 changed file
with
16 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,62 +1,22 @@ | ||
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", | ||
}, | ||
{ | ||
prefix .. "g", | ||
"<Cmd>lua require('telescope').extensions.dap.configurations{}<CR>", | ||
{ silent = true, expr = false }, | ||
mode = { | ||
"n", | ||
}, | ||
desc = "Telescope DAP configurations", | ||
}, | ||
{ | ||
prefix .. "l", | ||
"<Cmd>lua require('telescope').extensions.dap.list_breakpoints{}<CR>", | ||
{ silent = true, expr = false }, | ||
mode = { | ||
"n", | ||
}, | ||
desc = "Telescope DAP list breakpoints", | ||
}, | ||
{ | ||
prefix .. "v", | ||
"<Cmd>lua require('telescope').extensions.dap.variables{}<CR>", | ||
{ silent = true, expr = false }, | ||
mode = { | ||
"n", | ||
}, | ||
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", | ||
keys = { | ||
{ prefix .. "c", function() require("telescope").extensions.dap.commands() end, desc = "Telescope DAP commands" }, | ||
{ prefix .. "f", function() require("telescope").extensions.dap.frames() end, desc = "Telescope DAP frames" }, | ||
{ | ||
prefix .. "g", | ||
function() require("telescope").extensions.dap.configurations() end, | ||
desc = "Telescope DAP configurations", | ||
}, | ||
{ | ||
prefix .. "l", | ||
function() require("telescope").extensions.dap.list_breakpoints() end, | ||
desc = "Telescope DAP list breakpoints", | ||
}, | ||
{ prefix .. "v", function() require("telescope").extensions.dap.variables() end, desc = "Telescope DAP variables" }, | ||
}, | ||
{ | ||
"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, | ||
} |