From f77e2cd95eae7915ccc3c8acbf6ef68e19d92180 Mon Sep 17 00:00:00 2001
From: Gustaf Rydholm <gustaf.rydholm@gmail.com>
Date: Wed, 13 Jul 2022 20:12:10 +0200
Subject: Add lir and change split keymaps

---
 fnl/config/which-key.fnl | 2 --
 fnl/settings/keymaps.fnl | 7 +++++++
 2 files changed, 7 insertions(+), 2 deletions(-)

(limited to 'fnl')

diff --git a/fnl/config/which-key.fnl b/fnl/config/which-key.fnl
index a6f690c..063a3da 100644
--- a/fnl/config/which-key.fnl
+++ b/fnl/config/which-key.fnl
@@ -53,8 +53,6 @@
        :t ["<cmd>Telescope live_grep theme=ivy<cr>" "Find Text"]
        :P ["<cmd>Telescope projects<cr>" :Projects]
        :z [:<cmd>ZenMode<cr> "Zen Mode"]
-       :v [:<cmd>vsplit<cr> "Vertical Split"]
-       :h [:<cmd>split<cr> "Horizontal Split"]
        :p {:name :Packer
            :c [:<cmd>PackerCompile<cr> :Compile]
            :i [:<cmd>PackerInstall<cr> :Install]
diff --git a/fnl/settings/keymaps.fnl b/fnl/settings/keymaps.fnl
index 52254cd..b720948 100644
--- a/fnl/settings/keymaps.fnl
+++ b/fnl/settings/keymaps.fnl
@@ -50,3 +50,10 @@
 (map :v :<A-j> ":m .+1<CR>==" opts)
 (map :v :<A-k> ":m .-2<CR>==" opts)
 (map :v :p "\"_dP" opts)
+
+;; Splits
+(map :n :<A-s> :<cmd>split<CR> opts)
+(map :n :<C-s> :<cmd>split<CR> opts)
+(map :n :<A-v> :<cmd>vsplit<CR> opts)
+
+(map :n :- ":lua require'lir.float'.toggle()<cr>" opts)
-- 
cgit v1.2.3-70-g09d2