/cmp-tabby

Primary LanguageLuaMIT LicenseMIT

cmp-tabby

tabby source for hrsh7th/nvim-cmp

Install

Using a plugin manager

Using plug:

Plug 'nzlov/cmp-tabby'

Using plug on windows:

Plug 'nzlov/cmp-tabby'

Using Lazy:

return require("lazy").setup({
 {
     'nzlov/cmp-tabby',
     dependencies = 'hrsh7th/nvim-cmp',
 }})

Using Packer:

return require("packer").startup(
	function(use)
		use "hrsh7th/nvim-cmp" --completion
		use {'nzlov/cmp-tabby', requires = 'hrsh7th/nvim-cmp'}
	end
)

And later, enable the plugin:

require'cmp'.setup {
	sources = {
		{ name = 'cmp_tabby' },
	},
}

Setup

local tabby = require('cmp_tabby.config')

tabby:setup({
    host = 'http://localhost:5000',
    max_lines = 1000,
})

More

Based on tzachar/cmp-tabnine