@ -649,6 +649,7 @@ M.dap = { -- {{{
["<leader>dm"] = {
function()
require('spike.dap.dapmode').start()
vim.cmd.redrawstatus()
end,
"enter dap mode"
},
@ -19,8 +19,13 @@ if g.vim_version < 8 then
end
opt.laststatus = 3 -- global statusline
-- for statusline format see lua/custom/plugins/nvchadui.lua
if vim.env.STREAMING ~= nil then
opt.cmdheight = 0
else
opt.cmdheight = 1
opt.showmode = false
opt.title = true
@ -47,6 +47,7 @@ M.plugins = {
-- lazyload = false,
-- },
statusline = {
separator_style = 'block',
overriden_modules = function()
return require "custom.plugins.nvchadui"
@ -54,10 +54,10 @@ return {
if is_dapmode() then
local dap_mode = "%#St_DapMode# DAP" .. "%#St_DapModeSep#"
return current_mode .. mode_sep1 .. "%#St_DapModeSep2#" .. sep_r .. dap_mode .. sep_r
return current_mode .. mode_sep1 .. dap_mode .. sep_r
return current_mode .. mode_sep1 .. "%#ST_EmptySpace#" .. sep_r
return current_mode .. mode_sep1
fileInfo = function()
@ -93,6 +93,7 @@ local config = {
['Q'] = {
rhs = function()
M.layer:exit()
desc = '[dap] exit dap mode'
@ -136,7 +137,9 @@ function M.start()
function M.stop()
if M.layer ~= nil then M.layer:exit() end
if M.layer ~= nil then
function M.setup (opts)