2021-04-03 14:14:56 +00:00
|
|
|
(module init
|
2021-04-02 17:54:14 +00:00
|
|
|
{require {a aniseed.core
|
2021-04-03 14:14:56 +00:00
|
|
|
fennel aniseed.fennel
|
|
|
|
nvim aniseed.nvim
|
|
|
|
kb keybinds
|
2021-04-18 10:03:50 +00:00
|
|
|
utils utils}
|
2021-04-03 14:14:56 +00:00
|
|
|
require-macros [macros]})
|
2021-04-03 18:34:15 +00:00
|
|
|
|
2021-04-18 10:03:50 +00:00
|
|
|
(require "plugins.telescope")
|
|
|
|
(require "plugins.lsp")
|
|
|
|
(require "plugins.galaxyline")
|
2021-04-23 14:46:45 +00:00
|
|
|
(require "plugins.bufferline")
|
|
|
|
|
|
|
|
;(set nvim.g.conjure#client#fennel#aniseed#aniseed_module_prefix "aniseed.")
|
|
|
|
|
2021-04-18 10:03:50 +00:00
|
|
|
|
2021-04-03 14:14:56 +00:00
|
|
|
|
2021-04-23 14:46:45 +00:00
|
|
|
; " :: and _ as space ------------------------------------------------------------------- {{{
|
|
|
|
(var remapped-space nil)
|
|
|
|
(fn _G.RebindShit [newKey]
|
|
|
|
(set remapped-space {:old (vim.fn.maparg :<Space> :i)
|
|
|
|
:cur newKey})
|
|
|
|
(utils.keymap :i :<Space> newKey {:buffer true}))
|
2021-04-02 17:54:14 +00:00
|
|
|
|
2021-04-23 14:46:45 +00:00
|
|
|
(fn _G.UnbindSpaceStuff []
|
|
|
|
(if (and remapped-space (~= remapped-space {}))
|
|
|
|
(do
|
|
|
|
(utils.del-keymap :i :<Space> true)
|
|
|
|
(if (~= remapped-space.old "")
|
|
|
|
(utils.keymap :i :<Space> remapped-space.old {:buffer true}))
|
|
|
|
(set remapped-space nil))))
|
2021-04-23 16:09:31 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-04-03 17:43:27 +00:00
|
|
|
|
2021-04-23 14:46:45 +00:00
|
|
|
(nvim.command "autocmd! InsertLeave * :call v:lua.UnbindSpaceStuff()")
|
|
|
|
(utils.keymap :n "<Tab>j" ":call v:lua.RebindShit('_')<CR>")
|
|
|
|
(utils.keymap :n "<Tab>k" ":call v:lua.RebindShit('::')<CR>")
|
|
|
|
(utils.keymap :i "<Tab>j" "<space><C-o>:call v:lua.RebindShit('_')<CR>")
|
|
|
|
(utils.keymap :i "<Tab>k" "<space><C-o>:call v:lua.RebindShit('::')<CR>")
|
|
|
|
(utils.keymap :n "ö" "a")
|
2021-04-18 10:03:50 +00:00
|
|
|
|
2021-04-23 14:46:45 +00:00
|
|
|
; }}}
|