GithubHelp home page GithubHelp logo

Comments (3)

aktau avatar aktau commented on May 9, 2024 1

Thinking about this, I think it's best to emulate vim-lsp check before using the new API:

if exists('*sign_define') && (has('nvim') || has('patch-8.1.0772'))
   " Both group=* and the new API are available.
endif

from vim-signjump.

ZeroKnight avatar ZeroKnight commented on May 9, 2024

Wonderful, I was hoping they'd add to the signs API.

I would like to continue supporting versions without this new API, so I wonder what the best way would be to go about that. Using has v:version is what immediately comes to mind, but I wonder if there's a better way?

from vim-signjump.

aktau avatar aktau commented on May 9, 2024

I think the best option is to check for the existence of this API:

if exists('*sign_define') ...

(See prabirshrestha/vim-lsp#322, which has a discussion on this topic.)

from vim-signjump.

Related Issues (14)

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.