Skip to content

duckduckgo chat code completion made available as nvim-cmp source

License

Notifications You must be signed in to change notification settings

lokxii/cmp-ddg-ai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cmp-ddg-ai

duckduckgo chat made available as nvim-cmp

nvim-cmp source name: cmp_ddg_ai

It is recommended to use a dedicated key to trigger the completion to prevent reaching api usage limit

cmp.setup({
  ...
  mapping = {
    ...
    ['<C-x>'] = cmp.mapping(
      cmp.mapping.complete({
        config = {
          sources = cmp.config.sources({
            { name = 'cmp_ddg_ai' },
          }),
        },
      }),
      { 'i' }
    ),
  },
})

To-do list

  • better prompt
  • config: ignore file types
  • option to choose gpt-3.5-turbo
  • proper indentation
  • proper logging
  • proper error reporting
  • add backend for www.phind.com/agent

About

duckduckgo chat code completion made available as nvim-cmp source

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published