diff --git a/lua/plugins/init.lua b/lua/plugins/init.lua index 7533998..837a2ca 100644 --- a/lua/plugins/init.lua +++ b/lua/plugins/init.lua @@ -142,7 +142,7 @@ return { -- debuging { "rcarriga/nvim-dap-ui", - event = "BufWinEnter", + event = "BufRead", dependencies = "mfussenegger/nvim-dap", enabled = vim.fn.has("win32") == 0, config = function() @@ -151,10 +151,10 @@ return { }, { "jay-babu/mason-nvim-dap.nvim", - event = "VeryLazy", + event = "BufRead", dependencies = { "williamboman/mason.nvim", "mfussenegger/nvim-dap" }, enabled = vim.fn.has("win32") == 0, - init = function() + config = function() require("user.mason_dap") end, }, diff --git a/lua/user/keymaps.lua b/lua/user/keymaps.lua index afb105b..b4c0358 100644 --- a/lua/user/keymaps.lua +++ b/lua/user/keymaps.lua @@ -97,7 +97,7 @@ end -- if pcall(require, "dap") then -- modified function keys found with `showkey -a` in the terminal to get key code -- run `nvim -V3log +quit` and search through the "Terminal info" in the `log` file for the correct keyname -if pcall(require, "dap") then +if vim.fn.has("win32") == 0 then map("n", "", function() require("dap").continue() end, "")