diff --git a/fnl/personalize.fnl b/fnl/personalize.fnl index 8a6eed6..c8105ae 100644 --- a/fnl/personalize.fnl +++ b/fnl/personalize.fnl @@ -15,29 +15,37 @@ :keymap (fn [] (let [nmap #(vim.keymap.set :n $1 $2 {:desc $3}) tmap #(vim.keymap.set :t $1 $2)] - (nmap : ":bnext" "Next Buffer") - (nmap : ":bprevious" "Previous Buffer") - (nmap : ":Telescope find_files" "Telescope find_files") - (nmap : ":Telescope buffers" "Telescope find_files") - (nmap : ":bn|bd!#" "Delete a buffer without removing the split") - (nmap :tt ":new term://bash|resize 8|i") - ;; unified window navigation via C-hjkl - (tmap : :h) - (tmap : :j) - (tmap : :k) - (tmap : :l) + (nmap :l ":ls:b" "List buffers and open") + (nmap : ":bn|bd!#" "Delete a buffer without removing the split") + (nmap :w :80|) + ;; unified split navigation via C-hjkl (nmap : :h) (nmap : :j) (nmap : :k) (nmap : :l) + (tmap : :h) + (tmap : :j) + (tmap : :k) + (tmap : :l) + ;; terminal + (nmap :to ":new term://bash|resize 8") + (nmap :tt ":vnew term://tut") + (nmap :tg ":new term://gomuks") + (vim.api.nvim_create_autocmd + [:BufWinEnter :WinEnter] + {:pattern "term://*" + :command "startinsert"}) + ;; gemwiki (nmap :dd #(vim.cmd (.. "split ~/gemwiki/diary/" (os.date "%Y%m%d") ".gmi" "|resize 8|$") "Open today's diary")) + (nmap : ":Telescope find_files" "Telescope find_files") + (nmap : ":Telescope buffers" "Telescope buffers") (let [duck (require :duck)] - (nmap :dd #(duck.hatch) "hatch a duck") + (nmap : #(duck.hatch) "hatch a duck") (nmap :dk #(duck.cook) "cook a duck")) )) :treesitter-languages [:c