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