aboutsummaryrefslogtreecommitdiffstats
path: root/lua/plugins/dap.lua
diff options
context:
space:
mode:
authorAriel D'Alessandro <dalessandro.ariel@gmail.com>2023-01-22 10:18:07 +0100
committerAriel D'Alessandro <dalessandro.ariel@gmail.com>2023-01-22 10:18:07 +0100
commit5455aacdedfb2829f000b2f120a6d5194d1227f8 (patch)
treeca73cfdf3b9106aab00c5acb3d239df61e9c43d9 /lua/plugins/dap.lua
parentbf157b642c2910abae1810c985817e42502000b5 (diff)
downloadnvim-conf-5455aacdedfb2829f000b2f120a6d5194d1227f8.tar.gz
nvim-conf-5455aacdedfb2829f000b2f120a6d5194d1227f8.zip
feat: big change on the structure of the plugins, move several things to config dir
Diffstat (limited to 'lua/plugins/dap.lua')
-rw-r--r--lua/plugins/dap.lua31
1 files changed, 31 insertions, 0 deletions
diff --git a/lua/plugins/dap.lua b/lua/plugins/dap.lua
new file mode 100644
index 0000000..f8a7b17
--- /dev/null
+++ b/lua/plugins/dap.lua
@@ -0,0 +1,31 @@
+return {
+ "mfussenegger/nvim-dap",
+ dependencies = {
+ "theHamsta/nvim-dap-virtual-text",
+ "rcarriga/nvim-dap-ui",
+ "leoluz/nvim-dap-go",
+ "mxsdev/nvim-dap-vscode-js",
+ "anuvyklack/hydra.nvim",
+ "nvim-telescope/telescope-dap.nvim",
+ "rcarriga/cmp-dap",
+ },
+ keys = { { "<leader>d" } },
+ config = function()
+ require("alpha.dap")
+ local ok_telescope, telescope = pcall(require, "telescope")
+ if ok_telescope then
+ telescope.load_extension("dap")
+ end
+
+ local ok_cmp, cmp = pcall(require, "cmp")
+ if ok_cmp then
+ cmp.setup.filetype({ "dap-repl", "dapui_watches" }, {
+ sources = cmp.config.sources({
+ { name = "dap" },
+ }, {
+ { name = "buffer" },
+ }),
+ })
+ end
+ end
+}