Skip to content

Latest commit

 

History

History
31 lines (23 loc) · 843 Bytes

README.md

File metadata and controls

31 lines (23 loc) · 843 Bytes

cairo.vim

A Cairo lang plugin for Vim

Install with Plug

Plug 'codemedian/cairo.vim'

Combine with Cairo language server when using COC

Check out the cairo 1.0 project https://github.com/starkware-libs/cairo and build their language server as instructed here

Once built, you'll find the binary in the target/release directory. To make it work with COC, specify the binary as illustrated below

{
    "languageserver": {
        "cairo": {
            "command": "<YOUR_PROJECT_PATH>/cairo/target/release/cairo-language-server",
            "rootPatterns": [".git/", "hardhat.config.ts"],
            "trace.server": "verbose",
            "filetypes": ["cairo"]
       }
    }
}

License

MIT