Comments (3)
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.
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.
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)
- Sign caching is imperfect HOT 1
- Turn contiguous regions of signs with the same name into text objects
- Finalize interface for name-filtered jump mappings and update help
- Jumping with no valid signs moves cursor to the beginning of the line
- Get signs from all groups HOT 2
- Improve install instructions
- Plugin expects a english locale HOT 4
- Add unit tests HOT 1
- Add ability to jump in Visual mode
- Address conflict with default spell-check mappings
- Support 'wrapscan' HOT 2
- Jump by sign names HOT 17
- Jump through contiguous regions HOT 4
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 vim-signjump.