GitHub completion for ddc.vim via gh

Overview

ddc-github

GitHub completion for ddc.vim via gh

These sources collect something related to GitHub (e.g. issues, pull requests) via gh, which is GitHub’s official command line tool.

Now ddc-github provides below sources:

  • github_issue
  • github_pull_request

Please read help for details.

Requirements

Configuration

" Use github sources
call ddc#custom#patch_global('sources', ['github_issue', 'github_pull_request'])

" Change source options
call ddc#custom#patch_global('souceOptions', {
      \ 'github_issue': {
      \   'mark': 'issue',
      \   'forceCompletionPattern': '#\d*',
      \ },
      \ })

" Use on specific filetype
call ddc#custom#patch_filetype(['gitcommit'], {
      \ 'sources': ['github_issue', 'github_pull_request'],
      \ 'keywordPattern': '[a-zA-Z_:#]\k*',
      \ })

" Use on `gh (issue|pr) create` buffer
function! s:on_gh() abort
  " Check whether the file is gh's buffer
  let tmpdir = empty($TMPDIR) ? '/tmp' : expand('$TMPDIR')
  if fnamemodify(bufname(), ':h') != tmpdir || getcwd() == tmpdir
    return
  endif
  " Over sources
  call ddc#custom#patch_buffer({
        \ 'sources': ['github_issue', 'github_pull_request'],
        \ 'keywordPattern': '[a-zA-Z_:#]\k*',
        \ })
  inoremap <silent><expr><buffer> <C-x><C-g>
        \ ddc#map#manual_complete('github_issue', 'github_pull_request')
endfunction
autocmd FileType markdown call <SID>on_gh()
You might also like...

💻 ssher.vim is interacting remote machines(only linux) through ssh connection

💻 ssher.vim is interacting remote machines(only linux) through ssh connection

Feb 21, 2022

Custom list source for ddu.vim

ddu-source-custom-list Custom list source for ddu.vim This souce allows you to specify custom text list as a ddu source programatically. Configuration

Dec 28, 2022

Experimental keycast plugin for Vim/Neovim

Experimental keycast plugin for Vim/Neovim

vim-keycasty Introduction Keycasty is an experimental keycast plugin for Vim/Neovim. Still work in progress. Use it just for testing. Design Keycasty

Apr 30, 2022

Do you wanna watch "Bad Apple!!" on your vim/neovim?

bad-apple.vim Let's watch Bad Apple!! on your vim/neovim! BadAppleVimShort.mov https://youtu.be/XezoLvr1dX0 Required denops.vim https://github.com/vim

Dec 28, 2022

GraphQL client for Vim/Neovim

GraphQL client for Vim/Neovim

denops-graphql.vim GraphQL client for Vim/Neovim. Requirements denops.vim Usage :GraphQLExecute Execute current buffer as graphql query. :GraphQLEdit

Dec 15, 2022

Line source for ddu.vim

ddu-source-line Line source for ddu.vim This source collects current buffer lines. Required denops.vim https://github.com/vim-denops/denops.vim ddu.vi

Dec 11, 2022

Vim/Neovim plugin for Kubernetes

Vim/Neovim plugin for Kubernetes

k8s.vim A Vim/Neovim plugin for kubernetes Requirements denops.vim kubectl Usage " Execute kubectl via terminal " Bellow is Same as 'kubectl get pods

Oct 7, 2022

Github follower notifier via telegram bot

⚡ GitHub Follower Notifier 😋 ⚡ Vars: 🔥 FEED: Go Here to get yours. DATABASE: Go HERE to create one. After creating Instance: Go to your Instance Go

Nov 25, 2021

Sample of CI/CD auto deploy to own server via Github Actions

Psst — looking for a more complete solution? Check out SvelteKit, the official framework for building web applications of all sizes, with a beautiful

Mar 19, 2022
Owner
Hibiki
I'm a student and developer in Japan. I like vim, discord, deno, python, and cli.
Hibiki
dein.vim upgrader using ddu.vim

ddu-source-dein_update This source updates the plugins installed by dein.vim and output the result to ddu buffer. You can use this plugin instead of d

Haruki Matsui 11 Dec 28, 2022
Grupprojekt för kurserna 'Javascript med Ramverk' och 'Agil Utveckling'

JavaScript-med-Ramverk-Laboration-3 Grupprojektet för kurserna Javascript med Ramverk och Agil Utveckling. Utvecklingsguide För information om hur utv

Svante Jonsson IT-Högskolan 3 May 18, 2022
Hemsida för personer i Sverige som kan och vill erbjuda boende till människor på flykt

Getting Started with Create React App This project was bootstrapped with Create React App. Available Scripts In the project directory, you can run: np

null 4 May 3, 2022
Kurs-repo för kursen Webbserver och Databaser

Webbserver och databaser This repository is meant for CME students to access exercises and codealongs that happen throughout the course. I hope you wi

null 14 Jan 3, 2023
NFT stacking frontend completion using web3 on solana for client Nelson project.

NFT stacking frontend completion using web3 on solana for client Nelson project.

Kapollo 12 Dec 16, 2022
A Hackable Markdown Note Application for Programmers. Version control, AI completion, mind map, documents encryption, code snippet running, integrated terminal, chart embedding, HTML applets, plug-in, and macro replacement.

Yank Note A hackable markdown note application for programmers Download | Try it Online >>> Not ecommended English | 中文说明 [toc]{level: [2]} Highlights

洋子 4.3k Dec 31, 2022
A small logging proxy server for intercepting and logging code completion requests from copilot.

PilotWatch PilotWatch is a small logging proxy server written in node.js for intercepting and logging code completion requests from Github's Copilot.

John Robinson 7 May 8, 2023
Homepage of the Vim Inspired Electron Browser - Vieb

vieb.dev Vieb is the Vim Inspired Electron Browser. This repo contains the full source code of Vieb's website/homepage. This does not contain the sour

Jelmer van Arnhem 5 Dec 15, 2022
File kind for ddu.vim

ddu-kind-file File kind for ddu.vim This kind implements file operations. Required denops.vim https://github.com/vim-denops/denops.vim ddu.vim https:/

Shougo 19 Dec 15, 2022