aboutsummaryrefslogtreecommitdiff
path: root/configs/nvim/config-root/lua/crupest/utils/nvim.lua
blob: 4477ecc044a4d3dc180126fbfb5b0c41b45e11cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
local M = {}

function M.close_float()
    local wins = vim.api.nvim_list_wins()
    for _, v in ipairs(wins) do
        if vim.api.nvim_win_get_config(v).relative ~= '' then
            vim.api.nvim_win_close(v, false)
        end
    end
end

return M