Code Monkey home page Code Monkey logo

bazel.vim's Introduction

Bazel.vim

Syntax highlighting for Bazel BUILD and WORKSPACE files.

This plugin does support the official skylark extensions for the following languages:

  • Closure
  • Docker
  • Groovy
  • Java App Engine
  • D
  • Rust
  • Jsonnet
  • Scala

Installation

Pathogen

If you're using Pathogen follow the following instructions.

cd ~/.vim/bundle && \
git clone https://github.com/durandj/bazel.vim.git

Vundle

If you're using Vundle then all you have to do is add the following to your ~/.vimrc file.

Plugin 'durandj/bazel.vim'

Old School/Classic Plugin Management

If you're "hardcore" and you don't use any plugin manager for your Vim environment then you will need to do the following.

  1. Download/Clone/Checkout the source
  2. Copy the contents of bazel.vim/ftdetect to ~/.vim/ftdetect
  3. Copy the contents of bazel.vim/ftplugin to ~/.vim/ftplugin
  4. Copy the contents of bazel.vim/syntax to ~/.vim/syntax

Alternatives

It is worth noting that there is an alternative plugin to this one. davidzchen wrote vim-bazel which works fine but I decided to make my own version because I didn't like how his plugin did not highlight the arguments to the standard build rules. While this is a small thing I really like having a visual confirmation that I'm writing the right thing and that there's not a typo that I'm going to find when I try to build.

The bazel.vim plugin also supports the official Skylark extensions which the vim-bazel plugin does not at present.

TODO

  1. Split up support for the build rules based on if a WORKSPACE or a BUILD file is being edited

bazel.vim's People

Contributors

durandj avatar

Stargazers

Stanimir Mladenov avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.