DaikiMaekawa / neovim.cpp

C++ client for Neovim

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

neovim.cpp

Boost::Asio based client library for talking with NeoVim process via it's msgpack-rpc API. (in progress)

Depends on: msgpack-c, Jinja2, and Boost Libraries.

Usage

#include "nvim.hpp"

int main() {
    nvim::Nvim nvim;
    nvim.connect_tcp("localhost", "6666");
    nvim.nvim_eval("\( 3 + 2 \) \* 4");
    std::cout << "get_current_line = " << nvim.nvim_get_current_line() << std::endl;
    nvim.vim_set_current_line("testhogefuga");
    
    for(;;) {}

    return 0;
}

About

C++ client for Neovim

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:C++ 74.6%Language:Python 17.8%Language:CMake 7.6%