You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Jordan Orelli 65af79f8c3 moving some stuff around 2 years ago
..
autoload/zig moving some stuff around 2 years ago
ftdetect moving some stuff around 2 years ago
ftplugin moving some stuff around 2 years ago
indent moving some stuff around 2 years ago
plugin moving some stuff around 2 years ago
syntax moving some stuff around 2 years ago
LICENSE moving some stuff around 2 years ago
README.md moving some stuff around 2 years ago

README.md

zig.vim

File detection and syntax highlighting for the zig programming language.

Installation

If using Vim:

  • Use Vim 8 or newer
  • mkdir -p ~/.vim/pack/plugins/start/
  • cd ~/.vim/pack/plugins/start/
  • git clone https://github.com/ziglang/zig.vim

If using Neovim:

  • mkdir -p ~/.local/share/nvim/site/pack/plugins/start/
  • cd ~/.local/share/nvim/site/pack/plugins/start/
  • git clone https://github.com/ziglang/zig.vim

Configuration

This plugin enables automatic code formatting on save by default using zig fmt. To disable it, you can use this configuration in vimrc:

let g:zig_fmt_autosave = 0