From 804f2a342d1b2002ad383ff604e75eb0caba8f65 Mon Sep 17 00:00:00 2001 From: amelia squires Date: Wed, 13 Nov 2024 06:17:23 -0600 Subject: ton of new stuff --- fnl/plugins/which_key.fnl | 30 +++++++++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) (limited to 'fnl/plugins/which_key.fnl') diff --git a/fnl/plugins/which_key.fnl b/fnl/plugins/which_key.fnl index 6d4963f..e3279db 100644 --- a/fnl/plugins/which_key.fnl +++ b/fnl/plugins/which_key.fnl @@ -1,4 +1,4 @@ -(local whichkey (require :which-key)) +(local whichkey (_G.util.require! :which-key)) (whichkey.setup) (macro wmap [k op desc] @@ -11,11 +11,39 @@ (wmap :f "Neotree toggle" "fs") (wmap :w "WinShift" "win shift") (wmap :t "ToggleTerm direction=horizontal" "hterm") + (wmap :d "Glance references" "references") + (wmap :s "Telescope live_grep" "search") + (wmap :b "JABSOpen" "buffers") + (wmap :g (fn [] + (local buffer (vim.fn.expand :%)) + (vim.cmd "w") ;write so location is updated + (vim.cmd "tabe") + (vim.cmd (.. "buffer " buffer)) + ((. (require "dapui") :open))) "dap-ify") + (wmap :x "tabclose" "close tab") + (wmap :c (fn [] + (_G.loaded.edgy.goto_main) + (vim.cmd "DiffviewOpen")) "git diff") + + ;;layouts + (gmap :l "layout") + (wmap :li (fn [] + (vim.cmd "ToggleTerm direction=horizontal") + (vim.cmd "Neotree toggle") + (vim.cmd "Outline")) "ide") + + ;;visual + (gmap :v "visual") + (wmap :vl "lua require('nabla').toggle_virt({autogen=true})" "latex") + (wmap :vb "lua require('nvim-biscuits').toggle_biscuits()" "biscuits") ;;quick (gmap :q "quick") (wmap :qs "\"+y" "system grab") (wmap :ql "0v$" "line") + (wmap :qr "SnipRun" "run highlighted") + (wmap :qf "RunFile" "run file") + (wmap :qe "RunCode" "run code") ]) (tset mappings :mode [:n :v]) -- cgit v1.2.3