From 3425a60d973ffd9fa012aed660197d3b2e5b60dd Mon Sep 17 00:00:00 2001 From: secretspecter Date: Sat, 9 Mar 2024 11:28:00 -0700 Subject: [PATCH] Make tab pages a bit less awkward --- fnl/personalize.fnl | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/fnl/personalize.fnl b/fnl/personalize.fnl index 4bf7cb9..02c7b3e 100644 --- a/fnl/personalize.fnl +++ b/fnl/personalize.fnl @@ -18,13 +18,6 @@ :keymap (fn [] (let [nmap #(vim.keymap.set :n $1 $2 {:desc $3}) tmap #(vim.keymap.set :t $1 $2)] - - (nmap : : "Toggle alternate-file") - (nmap : ":bn|bd!#" "Delete a buffer without removing the split") - (nmap :to ":new term://bash|resize 8" "Open an 8 line terminal below the current window") - (nmap :w :80| "Set the window width to 80 characters") - (nmap : :tabnew "Create a new tab page") - (nmap : :h "Move to window left") (nmap : :j "Move to window down") (nmap : :k "Move to window up") @@ -37,7 +30,15 @@ (vim.api.nvim_create_autocmd [:BufWinEnter :WinEnter] {:pattern "term://*" - :command "startinsert"}) ;; Start terminals in insert mode + :command "startinsert"}) ;; Start terminals in insert mode + + (nmap : : "Toggle alternate-file") + (nmap : ":bn|bd!#" "Delete a buffer without removing the split") + (nmap :to ":new term://bash|resize 8" "Open an 8 line terminal below the current window") + (nmap :w :80| "Set the window width to 80 characters") + (nmap :W :120| "Set the window width to 120 characters") + (nmap : ":tabnew" "Create a new tab page") + (nmap : :gt "Go to next tab (cyclical)") (nmap :jt #(vim.cmd (.. "vsplit ~/TDC-Obsidian/Journal/" @@ -53,8 +54,7 @@ (nmap :s ":Telescope live_grep" "Search current buffer") (nmap :e ":Telescope emoji" "Search for an emoji to copy to clipboard") - (nmap :gs ":vsplit term://tig") - (nmap :gc ":vsplit term://git commit") + (nmap :gs ":vsplit term://tig" "Open tig(1) to stage and commit changes") (let [duck (require :duck)] (nmap : #(duck.hatch) "hatch a duck")