Skip to content

joshzcold/cmp-jenkinsfile

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

cmp-jenkinsfile

simple completion utilizing the IntelliJ IDEA GDSL file that gets generated for installed jenkins plugins.

example gdsl

method(name: 'parallel', type: 'Object', params: ['closures':'java.util.Map'], doc: 'Execute in parallel')
method(name: 'parallel', type: 'Object', namedParams: [parameter(name: 'closures', type: 'java.util.Map'), parameter(name: 'failFast', type: 'boolean'), ], doc: 'Execute in parallel')

demo

example gif

options

jenkins_url: full jenkins url to download the gdsl from.

example: http://jenkins.lab/

/pipeline-syntax/gdsl will automatically be append to the end of the url.

gdsl_file: full path to either download to or statically read from.

If jenkins_url is supplied then this file will be written to. If jenkins_url is blank then only read from the supplied path

defaults to: $HOME/.cache/nvim/cmp-jenkinsfile.gdsl

Recommended Config:

cmp.setup({
  cmp.setup.filetype("Jenkinsfile", {
    sources = {
      {
        name = "jenkinsfile",
        option = {
          jenkins_url = "https://jenkins.co",
        },
      },
    },
  }),

About

nvim-cmp completion for jenkinsfile gdsl

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages