(import-macros {: map!} :hibiscus.vim)

(local smart-splits (require :smart-splits))

(map! [n] :<C-Left>    smart-splits.move_cursor_left)
(map! [n] :<C-Down>    smart-splits.move_cursor_down)
(map! [n] :<C-Up>      smart-splits.move_cursor_up)
(map! [n] :<C-Right>   smart-splits.move_cursor_right)
(map! [n] :<C-S-Up>    smart-splits.resize_up)
(map! [n] :<C-S-Down>  smart-splits.resize_down)
(map! [n] :<C-S-Left>  smart-splits.resize_left)
(map! [n] :<C-S-Right> smart-splits.resize_right)
