Comments (7)
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.
Hey there. Can you give me some context?
What's your configuration look like?
from cmp-jenkinsfile.
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.
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.
2022-08-16.14.34.48.mp4
Seems to work, even if I set jenkins_url
to a bad value
from cmp-jenkinsfile.
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.
How did you get syntax highlighting with jenkins file?
from cmp-jenkinsfile.
Related Issues (1)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cmp-jenkinsfile.