GithubHelp home page GithubHelp logo

bazel.vim's Introduction

bazel.vim - Bazel build system integration for Vim

  • Tab autocompletion for targets
  • goto-definition for BUILD files
  • listing references

and more.

Comparison

Feature bazel.vim official vim-bazel
Zero dependency ✗(requires Bash completion + vim-maktaba)
Tab completion
Integration with Vim terminal ✓(does not reuse terminal window)
Build results in QuickFix
Go to BUILD file
Go to label/target definition
List references

Default mappings

  • gb - Go to BUILD file corresponding to the current buffer.
  • gd - Go to label definition under cursor (for BUILD and .bzl files).
  • gr - List references for label under cursor (for BUILD and .bzl files).
  • <leader>p - Print label that corresponds to current buffer.
  • b<C-G> - Print current buffer path relative to workspace.

Commands

  • Bazel {args} - Run Bazel command and open QuickFix when done.

Example:

:Bazel build //main:hello-world
  • BazelDefinition {target} - Jump to target definition.

Example:

:BazelDefinition //main:hello-world
  • BazelReferences {target} - List target references.

Example:

:BazelReferences //lib:hello-time

bazel.vim's People

Contributors

noscript avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 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.