Skip to content

ericglau/vim-cairo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vim Cairo

⚠️⚠️ THIS REPOSITORY IS DEPRECATED. SEE https://github.com/ericglau/cairo-ls/blob/main/VIM.md INSTEAD. ⚠️⚠️


Language Support for Cairo in Vim.

Makes use of the Cairo language server and LanguageClient-neovim.

Note: This is an early preview and is still in active development.

Tested on Mac OS. Probably works on Linux.

Installation

Git clone this repo and run ./install-vim-cairo.sh

Or if you are familiar with Vim and LSP, review the scripts and manually configure your preferred language client to use the Cairo language server which can be found by unzipping the VS Code extension's .vsix file.

Usage

  • Compile errors: automatically highlighted
  • Go To Definition: put cursor over a function or imported module, then press F2 to go to its definition
  • Quick Fix: put cursor over a compile error and press F3, then choose a suggested quick fix
  • Hover: put cursor over a Cairo statement and press F4 to view more information (minimal support for now)

Demo animation

About

Language support for Cairo in Vim

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published