fauxpilot source for hrsh7th/nvim-cmp
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' },
},
}
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,
})
Based on tzachar/cmp-tabnine