diff --git a/lua/astrocommunity/debugging/telescope-dap-nvim/init.lua b/lua/astrocommunity/debugging/telescope-dap-nvim/init.lua index ebde55d70..4e0f58628 100644 --- a/lua/astrocommunity/debugging/telescope-dap-nvim/init.lua +++ b/lua/astrocommunity/debugging/telescope-dap-nvim/init.lua @@ -1,62 +1,22 @@ 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", + 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, }