A vim plugin for code completion with local LLMs.
To perform autocompletion, select the lines that you want to complete (in visual mode) and call :'<,'>AutoComplete
To comment a piece of code, select the lines (in visual mode) and call :'<,'>Comment
Requires ollama
and vim with python3 support.
The default model is deepseek-coder:6.7b-instruct
, you can change it by editing python3/codeassistant.py
, by changing the MODEL_NAME
variable.
Plug 'leocus/codeassistant.vim'
This plugin uses pretrained LLMs to generate code. Beware of the limitations of LLMs and of possible bugs in the plugin (which are quite likely :) ). If you have any suggestion for improving this plugin or to report any bug, please open an issue! :)