Simple AI code completion for neovim.
This project should be run with uv.
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.
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 (c) 2025 Mengxiao Lin. See LICENSE for more details.