~glacambre/firenvim

ref: 1da57aaa445fa2d74099c9223c5ee238f0ca25fb firenvim/src/background.ts -rw-r--r-- 600 bytes
1da57aaaglacambre Create stub that compiles and correctly requires files. 4 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
///<reference path="firenvim.d.ts" />

console.log("Firenvim content script loaded.");
let NvimProcess = require("./NeovimProcess.js").NeovimProcess;
let nvim = new NvimProcess();

require("promised-neovim-client").attach(nvim.stdin, nvim.stdout).then((nvim: any) => {
    nvim.on("request", (method: any, args: any, resp: any) => {
        console.log("request", method, args, resp)
    });
    nvim.on("notification", (method: any, args: any) => {
        console.log("notification", method, args)
    });
}).catch((err: any) => console.log(err));

console.log("Promised-neovim-cleint required.");