From 799dd32950d0b66335361e0f0e510d941226b2c7 Mon Sep 17 00:00:00 2001 From: Hektor Misplon Date: Sun, 15 Dec 2024 13:39:39 +0100 Subject: [PATCH] Add codi shell wrapper --- .bashrc | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.bashrc b/.bashrc index 3cc81f9..cbfedb2 100644 --- a/.bashrc +++ b/.bashrc @@ -115,3 +115,17 @@ if [[ -z "${SSH_CONNECTION}" ]]; then export SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/ssh-agent.socket" fi # }}} + +# Codi +# Usage: codi [filetype] [filename] +codi() { + local syntax="${1:-python}" + shift + nvim -c \ + "let g:startify_disable_at_vimenter = 1 |\ + set bt=nofile ls=0 noru nonu nornu |\ + hi ColorColumn ctermbg=NONE |\ + hi VertSplit ctermbg=NONE |\ + hi NonText ctermfg=0 |\ + Codi $syntax" "$@" +}