Giter Site home page Giter Site logo

git-complete-company's Introduction

git-complete-company

is a git-complete backend for company.

See git-complete repository for completion algorithm details.

Usage

This package provides two company-backends:

  • git-complete-company-whole-line-backend

    company-backend which performs completion with "whole current-line completion" algorithm implemented in git-complete.

  • git-complete-company-omni-backend

    company-backend which performs completion with either "omni current-line completion" or "omni next-line completion" algorithm implemented in git-complete.

To enable these backends, add them to company-backends list.

(setq company-backends
      '(git-complete-company-omni-backend
        git-complete-company-whole-line-backend
        ...))

Note that these backends are much slower than other backends to collect and filter completion candidates. So they are (by default) configured not to start automatically. When (and only when) you invoke company explicitly (with company-manual-begin or similar commands), these backends start to work.

This behavior can be changed by setting git-complete-company-manual-only nil, but it's not recommended.

Limitations

Unlike the original git-complete command, git-complete-company is implemented as two different backends. So they cannot be used at the same time (i.e. when "whole-line" backend finds some candidates, "omni" backend does not work at all). You can still choose which backend will take precedence by changing the order of company-backends, but git-complete-company perhaps is not as useful as the original command.

A good news is: I'm currently working on another omni completion backend called company-symbol-after-symbol, which is fast enough and comes with auto-start feature. So it may be a good idea to use it for omni completion (instead of git-complete-company-omni-backend), and use git-complete-company just for "whole-line" completion.

(setq company-backends
      '(git-complete-company-whole-line-backend
        company-symbol-after-symbol
        ...))

git-complete-company's People

Contributors

zk-phi avatar

Stargazers

Semen avatar

Watchers

James Cloos avatar  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.