(module init {require {a aniseed.core fennel aniseed.fennel nvim aniseed.nvim kb keybinds utils utils} require-macros [macros]}) (require "plugins.telescope") (require "plugins.lsp") (require "plugins.galaxyline") (require "plugins.bufferline") ;(set nvim.g.conjure#client#fennel#aniseed#aniseed_module_prefix "aniseed.") ; " :: and _ as space ------------------------------------------------------------------- {{{ (var remapped-space nil) (fn _G.RebindShit [newKey] (set remapped-space {:old (vim.fn.maparg : :i) :cur newKey}) (utils.keymap :i : newKey {:buffer true})) (fn _G.UnbindSpaceStuff [] (if (and remapped-space (~= remapped-space {})) (do (utils.del-keymap :i : true) (if (~= remapped-space.old "") (utils.keymap :i : remapped-space.old {:buffer true})) (set remapped-space nil)))) (nvim.command "autocmd! InsertLeave * :call v:lua.UnbindSpaceStuff()") (utils.keymap :n "j" ":call v:lua.RebindShit('_')") (utils.keymap :n "k" ":call v:lua.RebindShit('::')") (utils.keymap :i "j" ":call v:lua.RebindShit('_')") (utils.keymap :i "k" ":call v:lua.RebindShit('::')") (utils.keymap :n "รถ" "a") ; }}}