Browse Source

nvim: added col for nim and made output colorless

master
TiynGER 1 week ago
parent
commit
507a8effc4
2 changed files with 2 additions and 1 deletions
  1. +1
    -0
      .config/nvim/init.vim
  2. +1
    -1
      .local/bin/tools/nvim/compiler

+ 1
- 0
.config/nvim/init.vim

@ -303,6 +303,7 @@ autocmd VimLeave *.c !cclear
autocmd BufEnter,FileType c set colorcolumn=80
autocmd BufEnter,FileType java set colorcolumn=100
autocmd BufEnter,FileType markdown set colorcolumn=80
autocmd BufEnter,FileType nim set colorcolumn=80
autocmd BufEnter,FileType python set colorcolumn=80
" colorscheme

+ 1
- 1
.local/bin/tools/nvim/compiler

@ -32,7 +32,7 @@ case "$file" in
*\.md) pandoc "$file" --pdf-engine=xelatex -o "$base".pdf ;;
*config.h) sudo make install ;;
*\.c) if [ -f Makefile ]; then make run; else cc "$file" -o "$base" && "$base"; fi ;;
*\.nim) nim c "$file" && "$base" ;;
*\.nim) nim c -r -d:noColors "$file" ;;
*\.py) python "$file" ;;
*\.go) go run "$file" ;;
*\.sent) setsid sent "$file" 2>/dev/null & ;;

Loading…
Cancel
Save