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" "$@" +}