nvim: made the debugger window less stupidly large

This commit is contained in:
PowerUser64 2021-10-07 21:00:04 -07:00
parent 674b16cdee
commit 4c336ce34b

View file

@ -21,10 +21,12 @@ M.nvim_dap = function()
vim.fn.sign_define('DapBreakpoint', {text = '', texthl = 'ErrorMsg', linehl = '', numhl = ''}) -- custom attributes of breakpointed lines (use an emoji?)
vim.fn.sign_define('DapBreakpointRejected', {text = '', texthl = 'ErrorMsg', linehl = '', numhl = ''})
vim.fn.sign_define('DapLogPoint', {text = '', texthl = 'ErrorMsg', linehl = '', numhl = ''})
vim.fn.sign_define('DapStopped', {text = '', texthl = 'ErrorMsg', linehl = '', numhl = ''})
vim.fn.sign_define('DapStopped', {text = '', texthl = 'String', linehl = '', numhl = ''})
vim.cmd "au FileType dap-repl lua require('dap.ext.autocompl').attach()"
-- per-language config:
-- dap configuration
local dap = require('dap')
dap.defaults.fallback.terminal_win_cmd = "10new"
-- per-language config:
-- c++ dap congiguration >>>
dap.configurations.cpp = {
{
@ -81,11 +83,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"
},
-- 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.