Skip to content

ccolorado/vim-cairo

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Config cairo 1.0 in vim

Currently added:

  • Syntax highlight
  • Auto-format
  • Language-server

Synatx highlight

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

Auto format

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 %

Language server (limited)

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"]
    }
  },

About

Config for cairo 1 development in vim

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Vim Script 100.0%