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
|
-- external keybinds
|
||||||
-- require("dapui").open()
|
-- require("dapui").open()
|
||||||
-- require("dapui").close()
|
-- 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>'
|
vim.cmd 'nnoremap <silent> <leader>di <cmd>lua require("dapui").toggle()<CR>'
|
||||||
|
|
||||||
require("dapui").setup({
|
require("dapui").setup({
|
||||||
icons = { expanded = "▾", collapsed = "▸" },
|
icons = { expanded = "▾", collapsed = "▸" },
|
||||||
|
|
||||||
mappings = {
|
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
|
open = "o", -- action depends on the dap server
|
||||||
remove = "d", -- delete the variable
|
remove = "d", -- delete the variable
|
||||||
edit = "s", -- (as in substitute)
|
edit = "s", -- (as in substitute)
|
||||||
repl = "r", -- open a repl
|
repl = "r", -- open a repl
|
||||||
},
|
},
|
||||||
|
|
||||||
sidebar = {
|
sidebar = {
|
||||||
-- You can change the order of elements in the sidebar
|
-- You can change the order of elements in the sidebar
|
||||||
elements = {
|
elements = {
|
||||||
|
@ -82,13 +81,11 @@ M.dap_ui = function()
|
||||||
size = 40,
|
size = 40,
|
||||||
position = "left", -- Can be "left", "right", "top", "bottom"
|
position = "left", -- Can be "left", "right", "top", "bottom"
|
||||||
},
|
},
|
||||||
|
|
||||||
tray = {
|
tray = {
|
||||||
elements = { "repl" },
|
elements = { "repl" },
|
||||||
size = 10,
|
size = 10,
|
||||||
position = "bottom", -- Can be "left", "right", "top", "bottom"
|
position = "bottom", -- Can be "left", "right", "top", "bottom"
|
||||||
},
|
},
|
||||||
|
|
||||||
floating = {
|
floating = {
|
||||||
max_height = nil, -- These can be integers or a float between 0 and 1.
|
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.
|
max_width = nil, -- Floats will be treated as percentage of your screen.
|
||||||
|
@ -96,7 +93,6 @@ M.dap_ui = function()
|
||||||
close = { "q", "<Esc>" },
|
close = { "q", "<Esc>" },
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
windows = { indent = 1 },
|
windows = { indent = 1 },
|
||||||
})
|
})
|
||||||
end -- <<<
|
end -- <<<
|
||||||
|
|
Loading…
Add table
Reference in a new issue