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 | 2 years ago | |
---|---|---|
.. | ||
autoload/zig | 2 years ago | |
ftdetect | 2 years ago | |
ftplugin | 2 years ago | |
indent | 2 years ago | |
plugin | 2 years ago | |
syntax | 2 years ago | |
LICENSE | 2 years ago | |
README.md | 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