Thanks to visit codestin.com
Credit goes to github.com

Skip to content

linmx0130/nvim-ai-copilot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nvim-ai-copilot

Simple AI code completion for neovim.

Dependencies

This project should be run with uv.

config.py

Configuration on which model to use and which API provider to call should be set in this file.

An example can be found at config.py.example.

Enable the tool in init.lua

Add following code into init.lua in your nvim config.

vim.keymap.set('n', '<C-n>', function()
  vim.cmd('silent! execute "!uv --directory [PATH_TO_PLUGIN_FOLDER] run main.py " . v:servername . " & "')
end)

Then you can invoke the AI completion in normal mode with Ctrl + N.

Copyright

Copyright (c) 2025 Mengxiao Lin. See LICENSE for more details.

About

Simple AI code completion for neovim.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages