model.nvim
Neovim plugin for interacting with LLM's and building editor integrated prompts.ai awesome-neovim
model.nvim allows users to use AI models for completions or chat. It provides various AI models and is designed to be provider-agnostic, making it easy to customize prompts and experiment with different providers. The plugin also supports programmatic prompts in Lua, streaming completions directly in the buffer, and chat functionality in 'mchat' filetype buffers.
Breaking changes in model.nvim
Media
Install instructions
Dotfyle does not endorse any plugins. Install at your own
risk.
require('lazy').setup({
{
'gsuuon/model.nvim',
-- Don't need these if lazy = false
cmd = { 'M', 'Model', 'Mchat' },
init = function()
vim.filetype.add({
extension = {
mchat = 'mchat',
}
})
end,
ft = 'mchat',
keys = {
{'<C-m>d', ':Mdelete<cr>', mode = 'n'},
{'<C-m>s', ':Mselect<cr>', mode = 'n'},
{'<C-m><space>', ':Mchat<cr>', mode = 'n' }
},
-- To override defaults add a config field and call setup()
-- config = function()
-- require('model').setup({
-- prompts = {..},
-- chats = {..},
-- ..
-- })
--
-- require('model.providers.llamacpp').setup({
-- binary = '~/path/to/server/binary',
-- models = '~/path/to/models/directory'
-- })
--end
}
}) Developers using model.nvim
more configs 448 init.lua 73 4591
8 init.lua 42 1868
1 init.lua 190 8000
1 init.lua 98 11127