Code Monkey home page Code Monkey logo

Comments (7)

joshzcold avatar joshzcold commented on June 29, 2024 1

How did you get syntax highlighting with jenkins file?

It's apart of https://github.com/sheerun/vim-polyglot

Which just has a copy of https://github.com/martinda/Jenkinsfile-vim-syntax

from cmp-jenkinsfile.

joshzcold avatar joshzcold commented on June 29, 2024

Hey there. Can you give me some context?

What's your configuration look like?

from cmp-jenkinsfile.

komildeveloper avatar komildeveloper commented on June 29, 2024

cmp.setup.filetype("Jenkinsfile", { sources = { { name = "jenkinsfile", option = { jenkins_url = "https://jenkins.secmet.co", }, }, { name = "buffer", option = { get_bufnrs = function() return vim.api.nvim_list_bufs() end, }, }, { name = "luasnip" }, }, }),

in my lua/user/cmp.lua

and my gdsl config
$HOME/.cache/nvim/cmp-jenkinsfile.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')

from cmp-jenkinsfile.

joshzcold avatar joshzcold commented on June 29, 2024

that jenkins_url needs to be a server that you have can get you. Its going to try and pull the GDSL from the jenkins server.

However whats supposed to happen is if $HOME/.cache/nvim/cmp-jenkinsfile.gdsl exists then its supposed to skip the download.

Ill try your example

from cmp-jenkinsfile.

joshzcold avatar joshzcold commented on June 29, 2024
2022-08-16.14.34.48.mp4

Seems to work, even if I set jenkins_url to a bad value

from cmp-jenkinsfile.

joshzcold avatar joshzcold commented on June 29, 2024

You configuration snippet is fine. just got it to work with it applied.

maybe you need the :set ft=Jenkinsfile to get cmp to use it?

Do you have Jenkinsfile as a valid filetype?

from cmp-jenkinsfile.

Arkoprabho avatar Arkoprabho commented on June 29, 2024

How did you get syntax highlighting with jenkins file?

from cmp-jenkinsfile.

Related Issues (1)

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.