Skip to content

nzlov/cmp-fauxpilot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cmp-fauxpilot

fauxpilot source for hrsh7th/nvim-cmp

Install

Using a plugin manager

Using plug:

Plug 'nzlov/cmp-fauxpilot'

Using plug on windows:

Plug 'nzlov/cmp-fauxpilot'

Using Lazy:

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

Using Packer:

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

And later, enable the plugin:

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

Setup

local fauxpilot = require('cmp_fauxpilot.config')

fauxpilot:setup({
    host = 'http://localhost:5000',
    model = 'py-model',
    max_tokens = 100,
    max_lines = 1000,
    max_num_results = 4,
    temperature = 0.6,
})

More

Based on tzachar/cmp-tabnine

About

fauxpilot plugin for hrsh7th/nvim-cmp

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages