diff options
Diffstat (limited to 'fnl/config/toggleterm.fnl')
-rw-r--r-- | fnl/config/toggleterm.fnl | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/fnl/config/toggleterm.fnl b/fnl/config/toggleterm.fnl index 1aaee62..cfc9a33 100644 --- a/fnl/config/toggleterm.fnl +++ b/fnl/config/toggleterm.fnl @@ -1,5 +1,6 @@ ;; Terminal inside nvim. -(module config.toggleterm {autoload {: util nvim aniseed.nvim}}) +(module config.toggleterm + {autoload {: util nvim aniseed.nvim autocmd config.autocmd}}) (def- opts {:shade_terminals false}) @@ -10,6 +11,6 @@ (nvim.set_keymap :t :<C-l> "<Cmd>wincmd l<CR>" {})) (util.use-config :toggleterm opts) -(util.autocmd :TermOpen - {:pattern "term://*toggleterm#*" - :callback set-terminal-keymaps}) +(autocmd.create-autocmd :TermOpen + {:pattern "term://*toggleterm#*" + :callback set-terminal-keymaps}) |