Skip to content

codemedian/cairo.vim

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published

Languages

  • Vim Script 100.0%