Skip to content
This repository has been archived by the owner on Nov 22, 2019. It is now read-only.

can't use more than one annotation type #4

Open
sidorares opened this issue Oct 10, 2013 · 2 comments
Open

can't use more than one annotation type #4

sidorares opened this issue Oct 10, 2013 · 2 comments

Comments

@sidorares
Copy link

Not sure if it's vim or nb client issue.
Every time I try to use new anno type I get "E155 Unknown sign: 0" error in vim

example:

vim> vim.editFile('test.js', function(buff) { global.buff = buff })

vim> buff.addAnno({name: 'test', glyph: '▶', fg: 99879, bg:11111, id: 'test6'}, [16, 5])
sending command 1 defineAnnoType 1 "test" "" "▶" 99879 11111
sending command 1 addAnno 1 1 16/5

vim> buff.addAnno({name: 'test', glyph: '▶', fg: 99879, bg:11111, id: 'test7'}, [20, 5])
sending command 1 defineAnnoType 1 "test" "" "▶" 99879 11111
sending command 1 addAnno 1 1 16/5
  • second one fails
    I'm using simple vim repl:
var VimServer     = require("vim-netbeans").VimServer;
var repl = require('repl');

nbServer = new VimServer({debug: true});
nbServer.on("clientAuthed", function(vim) {
  var c = repl.start({
    prompt: 'vim> '
  }).context;
  c.vim = vim;
});
nbServer.listen();
@sidorares
Copy link
Author

Also colors don't work for non-gui vim (but work ok in gvim) - any ideas if it is possible to set annotation colors in terminal?

@sidorares
Copy link
Author

Looks like I need to change both name and id attributes - was able to set two different annotations in gvim. Also (might worth logging as a separate issue) - unicode chars (at least '▶' not recognized as glyph under mac/console vim if I use two characters, for example '=▶' but work ok if I have one '▶'. In linux/gvim there is no such problem

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant