nvim: formatting and add extra keybind
This commit is contained in:
parent
a3e4527e9e
commit
774eac7b0f
1 changed files with 3 additions and 7 deletions
|
@ -57,19 +57,18 @@ M.dap_ui = function()
|
|||
-- external keybinds
|
||||
-- require("dapui").open()
|
||||
-- require("dapui").close()
|
||||
-- require("dapui").toggle()
|
||||
-- toggle dap-ui with leader di as in dap interface
|
||||
vim.cmd 'nnoremap <silent> <leader>di <cmd>lua require("dapui").toggle()<CR>'
|
||||
|
||||
require("dapui").setup({
|
||||
icons = { expanded = "▾", collapsed = "▸" },
|
||||
|
||||
mappings = {
|
||||
expand = { "l", "<CR>", "<2-LeftMouse>", }, -- expand (or close)
|
||||
expand = { "l", "h", "<CR>", "<2-LeftMouse>", }, -- expand (or close)
|
||||
open = "o", -- action depends on the dap server
|
||||
remove = "d", -- delete the variable
|
||||
edit = "s", -- (as in substitute)
|
||||
repl = "r", -- open a repl
|
||||
},
|
||||
|
||||
sidebar = {
|
||||
-- You can change the order of elements in the sidebar
|
||||
elements = {
|
||||
|
@ -82,13 +81,11 @@ M.dap_ui = function()
|
|||
size = 40,
|
||||
position = "left", -- Can be "left", "right", "top", "bottom"
|
||||
},
|
||||
|
||||
tray = {
|
||||
elements = { "repl" },
|
||||
size = 10,
|
||||
position = "bottom", -- Can be "left", "right", "top", "bottom"
|
||||
},
|
||||
|
||||
floating = {
|
||||
max_height = nil, -- These can be integers or a float between 0 and 1.
|
||||
max_width = nil, -- Floats will be treated as percentage of your screen.
|
||||
|
@ -96,7 +93,6 @@ M.dap_ui = function()
|
|||
close = { "q", "<Esc>" },
|
||||
},
|
||||
},
|
||||
|
||||
windows = { indent = 1 },
|
||||
})
|
||||
end -- <<<
|
||||
|
|
Loading…
Add table
Reference in a new issue