Skip to content

Commit

Permalink
chore: add term hook
Browse files Browse the repository at this point in the history
  • Loading branch information
ttak0422 committed Jul 28, 2024
1 parent 63b099d commit bad4d6b
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 0 deletions.
5 changes: 5 additions & 0 deletions fnl/hook-term.fnl
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
;; <ESC>1回 → ノーマルモードに遷移、<ESC>2回 → ESCを入力
(vim.cmd "
tnoremap <ESC> <c-\\><c-n><Plug>(esc)
nnoremap <Plug>(esc)<ESC> i<ESC>
")
2 changes: 2 additions & 0 deletions lua/autogen/hook-term.lua

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions main/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ let
hookInsert
hookLeader
hookWindow
hookTerm
;
inherit (callPackage ./input.nix { })
cmp
Expand Down
4 changes: 4 additions & 0 deletions main/hook.nix
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,8 @@ with pkgs.vimPlugins;
postConfig = read ../lua/autogen/hook-window.lua;
hooks.events = [ "WinNew" ];
};
hookTerm = {
postConfig = read ../lua/autogen/hook-term.lua;
hooks.events = [ "TermOpen" ];
};
}

0 comments on commit bad4d6b

Please sign in to comment.