From f488dd3c159f651ee98a58f6ed7115fe6727060f Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Sun, 25 Feb 2024 15:37:23 +0530 Subject: config sync --- config/zsh/aliases/dev.zsh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'config/zsh/aliases/dev.zsh') diff --git a/config/zsh/aliases/dev.zsh b/config/zsh/aliases/dev.zsh index 9dd4307..d0398ea 100644 --- a/config/zsh/aliases/dev.zsh +++ b/config/zsh/aliases/dev.zsh @@ -60,3 +60,18 @@ fix-interpreter() { nix-shell -p patchelf --run "patchelf --set-interpreter \$(patchelf --print-interpreter \$(which mkdir)) $@" } + +# Terminal through neovim +vt() { + nvim +term \ + +'norm i' \ + +"lua vim.fn.feedkeys([[$1]])" \ + +'set nonumber norelativenumber signcolumn=no' \ + +'autocmd TermClose * execute "qa"' \ + +'hi @_phenax.term-title guibg=#1a1824 guifg=#8e7ae3 gui=bold' \ + +'set winbar=%#@_phenax.term-title#%=nvim-term%='; +} + +p__nvim_virtual_terminal() { vt "$BUFFER"; } +zle -N p__nvim_virtual_terminal; +bindkey '^T' p__nvim_virtual_terminal; -- cgit v1.3.1