Browse Source

Add nvim Sage syntax highligting & minor updates

- Add nvim Sage syntax highligting
- Update installer node for v16
- Update i3 config to restart status bar to avoid problems when
extending screens to hdmi
master
arnaucube 2 years ago
parent
commit
045df5631c
3 changed files with 10 additions and 2 deletions
  1. +3
    -0
      bin/screens
  2. +5
    -0
      init.vim
  3. +2
    -2
      install-new-server.sh

+ 3
- 0
bin/screens

@ -29,3 +29,6 @@ if len(sys.argv)>2:
# xrandr --output HDMI-2 --mode 3840x2160
subprocess.run(["xrandr", "--output", d[1], "--mode", "3840x2160"])
# restart i3 status bar to avoid being frozen
subprocess.run(["i3-msg", "restart"])

+ 5
- 0
init.vim

@ -179,6 +179,11 @@ let g:rainbow_active = 1
au BufRead,BufNewFile *.circom set filetype=circom
au BufRead,BufNewFile *.circuit set filetype=go-snark-circuit
"" sage syntax
augroup filetypedetect
au! BufRead,BufNewFile *.sage,*.spyx,*.pyx setfiletype python
augroup END
" for file watching
set backupcopy=yes

+ 2
- 2
install-new-server.sh

@ -51,8 +51,8 @@ wget https://golang.org/dl/go1.17.1.linux-amd64.tar.gz
tar -C /usr/local -xzf go1.17.1.linux-amd64.tar.gz
# nodejs
echo "installing nodejs v14"
curl -sL https://deb.nodesource.com/setup_14.x | bash -
echo "installing nodejs v16"
curl -sL https://deb.nodesource.com/setup_16.x | bash -
apt-get install -y nodejs
echo "installing npm http-server"

Loading…
Cancel
Save