Currently added:
- Syntax highlight
- Auto-format
- Language-server
Copy the file cairo.vim
to .vim/synatx/
Add the following lines to .vimrc
" some cairo config
au BufReadPost *.cairo set filetype=cairo
au Filetype cairo set syntax=cairo
Build cairo1 locally. https://github.com/starkware-libs/cairo
Got the the dir and run cargo build --release
Add the following to .vimrc
" cairo 1.0
:autocmd BufWritePost *.cairo silent ! /path/to/cairo/target/release/cairo-format %
After building as described above, add this to your coc-settings.json
"languageserver": {
"cairo": {
"command": "/path/to/cairo/target/release/cairo-language-server",
"filetypes": ["cairo"]
}
},