]> git.r.bdr.sh - rbdr/oleoboard.nvim/blame - lua/oleoboard/util.lua
Board in reverse
[rbdr/oleoboard.nvim] / lua / oleoboard / util.lua
CommitLineData
c0539eea
RBR
1-------------------------------------------------------------------------------
2-- Utilities shared by all modules. Categorize better if > 5 public functions
3-------------------------------------------------------------------------------
4local Util = {}
5
6-------------------------------------------------------------------------------
7-- Public Interface
8-------------------------------------------------------------------------------
9-- Window positioning utils
10function Util.is_left_of(a, b)
11 return a[1] == b[1] and a[2] > b[2]
12end
13
14function Util.is_right_of(a, b)
15 return Util.is_left_of(b, a)
16end
17
18return Util