diff --git a/fnl/personalize.fnl b/fnl/personalize.fnl index 02c7b3e..d724160 100644 --- a/fnl/personalize.fnl +++ b/fnl/personalize.fnl @@ -17,16 +17,16 @@ :keymap (fn [] (let [nmap #(vim.keymap.set :n $1 $2 {:desc $3}) - tmap #(vim.keymap.set :t $1 $2)] + tmap #(vim.keymap.set :t $1 $2 {:desc (.. $3 " (from a terminal)")})] (nmap : :h "Move to window left") + (tmap : :h "Move to window left") (nmap : :j "Move to window down") + (tmap : :j "Move to window down") (nmap : :k "Move to window up") + (tmap : :k "Move to window up") (nmap : :l "Move to window right") - (tmap : :h "Move to window left (from a terminal)") - (tmap : :j "Move to window down (from a terminal)") - (tmap : :k "Move to window up (from a terminal)") - (tmap : :l "Move to window right (from a terminal)") - (tmap : "" "Escape to normal mode from a terminal") + (tmap : :l "Move to window right") + (tmap : "" "Escape to normal mode") (vim.api.nvim_create_autocmd [:BufWinEnter :WinEnter] {:pattern "term://*" @@ -34,11 +34,14 @@ (nmap : : "Toggle alternate-file") (nmap : ":bn|bd!#" "Delete a buffer without removing the split") + (nmap :tt ":termi" "Open a terminal in the current window") (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") + (tmap : ":tabnew" "Create a new tab page") (nmap : :gt "Go to next tab (cyclical)") + (tmap : "gt" "Go to next tab (cyclical)") (nmap :jt #(vim.cmd (.. "vsplit ~/TDC-Obsidian/Journal/"