Coder Social home page Coder Social logo

jiayulu / forked_dotfiles_fugitive-gitlab.vim Goto Github PK

View Code? Open in Web Editor NEW

This project forked from shumphrey/fugitive-gitlab.vim

0.0 0.0 0.0 121 KB

fork of https://github.com/shumphrey/fugitive-gitlab.vim

License: MIT License

Shell 1.57% Dockerfile 1.20% Vim Script 97.23%

forked_dotfiles_fugitive-gitlab.vim's Introduction

fugitive-gitlab.vim

Fugitive GitLab

fugitive.vim is undoubtedly the best Git wrapper of all time.

This plugin allows you to use it with https://gitlab.com or your own private GitLab instance.

  • Enables :GBrowse from fugitive.vim to open GitLab URLs

  • In commit messages, GitLab issues and users can be omni-completed (<C-X><C-O>, see :help compl-omni).

Installation

Install it as you would install fugitive.vim (you will also need fugitive.vim installed)

To use private GitLab instances, add the following to your .vimrc

let g:fugitive_gitlab_domains = ['https://my.gitlab.com']

If the private GitLab instance uses different URLs, for example, one for SSH and another for HTTPS, instead add the following to your .vimrc

let g:fugitive_gitlab_domains = {'ssh://my-ssh.gitlab.com': 'https://my.gitlab.com'}

Fugitive command :GBrowse will now work with GitLab URLs.

Curl is required for features that use the GitLab API (i.e., :GBrowse doesn't need it). Generate a personal access token with api permissions and add it to your vimrc

let g:gitlab_api_keys = {'gitlab.com': 'myaccesstoken'}

To use omnicompletion with a private GitLab repository

let g:gitlab_api_keys = {'gitlab.com': 'mytoken1', 'my.gitlab.private': 'mytoken2' }

Omnicompletion functionality is subject to change.

Requirements

fugitive-gitlab.vim requires a modern fugitive.vim. API features require a GitLab instance with v4 of the API.

FAQ

How do I turn off that preview window that shows the issue body?

set completeopt-=preview

:GBrowse produces 404s on my old self hosted GitLab

let g:fugitive_gitlab_oldstyle_urls = 1

Why doesn't this plugin have a pun name?

I couldn't think of one.

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.