-
Notifications
You must be signed in to change notification settings - Fork 451
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question how to not override DAP UI control buttons? #1230
Comments
I got some cod working, that gets them back, but only as text, and not as actuall buttons: local function get_current_winbar()
local winbar = vim.api.nvim_eval_statusline(vim.opt.winbar:get(), { use_winbar = true }).str
winbar = winbar:gsub("^%s+", "")
winbar = winbar:gsub("+$", "") -- My Lualine Separator
winbar = winbar:gsub("%s+$", "")
return winbar
end
local dapui = {}
dapui.sections = {
lualine_a = {},
}
dapui.filetypes = {
"dap-repl",
"dapui_console",
"dapui_console",
"dapui_watches",
"dapui_stacks",
"dapui_breakpoints",
"dapui_scopes",
}
dapui.winbar = {
lualine_a = {
{
function()
local filetype = vim.bo.filetype
local disabled_filetypes = { "dap-repl" }
if vim.tbl_contains(disabled_filetypes, filetype) then
return get_current_winbar()
else
return vim.fn.expand("%:t")
end
end,
},
},
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have this lualine config to display file path
When I debug, the DAP UI buttons are overridden. When I switch window, I can see it flashes then disappears.
Screen.Recording.2024-04-19.at.18.21.07.mov
The text was updated successfully, but these errors were encountered: