From 94d509727a007dcf4b66dd893d43d1a1ad0d9471 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ensar=20Saraj=C4=8Di=C4=87?= Date: Wed, 23 Mar 2022 11:52:50 +0100 Subject: [PATCH] Add automatic DAPUI open/close --- symlinks/config/nvim/plugin/dap.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/symlinks/config/nvim/plugin/dap.lua b/symlinks/config/nvim/plugin/dap.lua index 58f3e62..53d4969 100644 --- a/symlinks/config/nvim/plugin/dap.lua +++ b/symlinks/config/nvim/plugin/dap.lua @@ -45,7 +45,8 @@ dap.listeners.after["event_initialized"]["me"] = function() end end end - api.nvim_set_keymap("n", "K", 'lua require("dap.ui.variables").hover()', {silent = true}) + api.nvim_set_keymap("n", "K", 'lua require("dapui").eval()', {silent = true}) + api.nvim_set_keymap("v", "K", 'lua require("dapui").eval()', {silent = true}) end dap.listeners.after["event_terminated"]["me"] = function()