pkage / coauthor.nvim

⌨️ neovim extension to do prompt continuation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

coauthor.nvim

asciicast

what?

Coauthor is a Neovim 0.7+ plugin to automatically help you write. Select some text to use as a prompt, and coauthor will continue writing that text for you.

how?

Put your cursor on a line, then run :CoauthorWrite.

To check if the server is running, try :CoauthorHealth.

install?

Install with packer.nvim:

use {
    'pkage/coauthor.nvim',
    requires = { 'nvim-lua/plenary.nvim' },
    config = function()
        -- default configuration options shown
        require('coauthor').setup({
            server_uri = 'http://localhost:8021',
            max_length = 256
        })
    end
}

Install poetry, and ensure you've got the server running somewhere:

$ cd server
$ poetry run python server.py

future work?

[ ] work with selections instead of lines

Neovim's API is a bit of a pain to work with, so this is future work.

who?

This plugin was written by patrick kage.

About

⌨️ neovim extension to do prompt continuation


Languages

Language:Lua 58.0%Language:Python 32.0%Language:Vim Script 8.7%Language:Shell 1.3%