From e22afa9953b268ca1e11507f7f910fe89d092837 Mon Sep 17 00:00:00 2001 From: Igor Date: Sun, 8 Dec 2024 21:17:24 -0300 Subject: [PATCH] cleanup some comments --- lua/dap-view/actions.lua | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lua/dap-view/actions.lua b/lua/dap-view/actions.lua index 23ba957..be3784e 100644 --- a/lua/dap-view/actions.lua +++ b/lua/dap-view/actions.lua @@ -7,7 +7,6 @@ local globals = require("dap-view.globals") local api = vim.api ----@class Actions local M = {} M.toggle = function() @@ -29,9 +28,6 @@ M.close = function() end end --- TODO showing breakpoint info may be outdated if not in a session --- we could use another approach to track breakpoint (instead of looking at the QF list) - M.open = function() M.close() @@ -41,11 +37,11 @@ M.open = function() state.bufnr = bufnr - -- TODO move this to close? local prev_buf = util.get_buf(globals.MAIN_BUF_NAME) if prev_buf then api.nvim_buf_delete(prev_buf, { force = true }) end + api.nvim_buf_set_name(bufnr, globals.MAIN_BUF_NAME) local winnr = api.nvim_open_win(bufnr, false, {