mirror of
https://github.com/Baipyrus/nvim-config.git
synced 2024-12-25 12:51:45 +00:00
toggle additional overseer splits if window already split
This commit is contained in:
parent
2fec155b77
commit
08f5acc7ed
@ -35,6 +35,12 @@ return {
|
||||
|
||||
-- Display status info about tasks
|
||||
vim.keymap.set('n', '<leader>ol', function()
|
||||
local curWindows = #vim.api.nvim_tabpage_list_wins(0)
|
||||
if curWindows ~= (is_open() and 2 or 1) then
|
||||
vim.cmd 'OverseerToggle'
|
||||
return
|
||||
end
|
||||
|
||||
overseer.toggle { winid = 0 }
|
||||
local bufnr = vim.api.nvim_get_current_buf()
|
||||
if is_open() then
|
||||
|
Loading…
Reference in New Issue
Block a user