From 39a66c35346874642e7f017b7019fa65cb522a88 Mon Sep 17 00:00:00 2001 From: ray-x Date: Tue, 26 Oct 2021 11:15:52 +1100 Subject: [PATCH] dap sign #35 --- lua/go/dap.lua | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/lua/go/dap.lua b/lua/go/dap.lua index b93518a..65165b7 100644 --- a/lua/go/dap.lua +++ b/lua/go/dap.lua @@ -6,12 +6,9 @@ local function setup_telescope() require('telescope').setup() require('telescope').load_extension('dap') local ts_keys = { - ["n|lb"] = map_cr('lua require"telescope".extensions.dap.list_breakpoints{}'):with_noremap() - :with_silent(), - ["n|tv"] = map_cr('lua require"telescope".extensions.dap.variables{}'):with_noremap() - :with_silent(), - ["n|bt"] = map_cr('lua require"telescope".extensions.dap.frames{}'):with_noremap() - :with_silent() + ["n|lb"] = map_cr('lua require"telescope".extensions.dap.list_breakpoints{}'):with_noremap():with_silent(), + ["n|tv"] = map_cr('lua require"telescope".extensions.dap.variables{}'):with_noremap():with_silent(), + ["n|bt"] = map_cr('lua require"telescope".extensions.dap.frames{}'):with_noremap():with_silent() } bind.nvim_load_mapping(ts_keys) end @@ -32,8 +29,7 @@ local function keybind() ["n|b"] = map_cr('lua require"dap".toggle_breakpoint()'):with_noremap():with_silent(), ["n|P"] = map_cr('lua require"dap".pause()'):with_noremap():with_silent(), ["n|p"] = map_cr('lua require"dap.ui.variables".hover()'):with_noremap():with_silent(), - ["v|p"] = map_cr('lua require"dap.ui.variables".visual_hover()'):with_noremap() - :with_silent() + ["v|p"] = map_cr('lua require"dap.ui.variables".visual_hover()'):with_noremap():with_silent() -- } @@ -58,9 +54,6 @@ M.prepare = function() utils.load_plugin('nvim-dap-ui', "dapui") utils.load_plugin('nvim-dap-virtual-text') end - - vim.fn.sign_define('DapBreakpoint', {text = '🧘', texthl = '', linehl = '', numhl = ''}) - vim.fn.sign_define('DapStopped', {text = '🏃', texthl = '', linehl = '', numhl = ''}) end M.breakpt = function()