From 5083fa8707b1a1211fe9a1f543ae598c793f2d08 Mon Sep 17 00:00:00 2001 From: Micah Halter Date: Mon, 10 Jul 2023 05:41:49 -0400 Subject: [PATCH] fix(telescope-dap-nvim): rewrite plugin spec --- .../debugging/telescope-dap-nvim/init.lua | 94 +++++++++---------- 1 file changed, 43 insertions(+), 51 deletions(-) diff --git a/lua/astrocommunity/debugging/telescope-dap-nvim/init.lua b/lua/astrocommunity/debugging/telescope-dap-nvim/init.lua index ebde55d70..984cd4ffc 100644 --- a/lua/astrocommunity/debugging/telescope-dap-nvim/init.lua +++ b/lua/astrocommunity/debugging/telescope-dap-nvim/init.lua @@ -1,62 +1,54 @@ 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", + "nvim-telescope/telescope.nvim", + keys = { + { + prefix .. "c", + "lua require('telescope').extensions.dap.commands{}", + { silent = true, expr = false }, + mode = { + "n", }, - { - prefix .. "g", - "lua require('telescope').extensions.dap.configurations{}", - { silent = true, expr = false }, - mode = { - "n", - }, - desc = "Telescope DAP configurations", + desc = "Telescope DAP commands", + }, + { + prefix .. "g", + "lua require('telescope').extensions.dap.configurations{}", + { silent = true, expr = false }, + mode = { + "n", }, - { - prefix .. "l", - "lua require('telescope').extensions.dap.list_breakpoints{}", - { silent = true, expr = false }, - mode = { - "n", - }, - desc = "Telescope DAP list breakpoints", + desc = "Telescope DAP configurations", + }, + { + prefix .. "l", + "lua require('telescope').extensions.dap.list_breakpoints{}", + { silent = true, expr = false }, + mode = { + "n", }, - { - prefix .. "v", - "lua require('telescope').extensions.dap.variables{}", - { silent = true, expr = false }, - mode = { - "n", - }, - desc = "Telescope DAP variables", + desc = "Telescope DAP list breakpoints", + }, + { + prefix .. "v", + "lua require('telescope').extensions.dap.variables{}", + { silent = true, expr = false }, + mode = { + "n", }, - { - prefix .. "f", - "lua require('telescope').extensions.dap.frames{}", - { silent = true, expr = false }, - mode = { - "n", - }, - desc = "Telescope DAP frames", + 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, - }, + dependencies = { "nvim-telescope/telescope-dap.nvim" }, + opts = function() require("telescope").load_extension "dap" end, }