Skip to content

Latest commit

 

History

History
38 lines (27 loc) · 464 Bytes

README.md

File metadata and controls

38 lines (27 loc) · 464 Bytes

go-vim

! Still on pre-alpha ;)

Go client for nvim

go get github.com/juanolon/go-nvim

Example

package main

import (
	"log"

	"github.com/juanolon/go-nvim"
)

func main() {

	n, err := nvim.Dial(nvim.CONN_NET, "/var/folders/x6/h18jf2xj10bgb1_jlf_fy0rr0000gn/T/nvimaGKXbS/0")
	if err != nil {
		log.Fatal("error connecting: ", err)
	}
	line := n.GetCurrentLine()
	log.Println(line)
}

License

MIT, see LICENSE