gsuuon / model.nvim

model.nvim

Neovim plugin for interacting with LLM's and building editor integrated prompts.
397 5 0 11 hours ago
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

3b7333 1 year ago
feat!: update tree-sitter grammar node names

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
joshmedeski/dotfiles
/.config/nvim
448 init.lua 73 4591
nathom/nvim_config
/
8 init.lua 42 1868
rneithon/dotfiles
/config/nvim
1 init.lua 190 8000
TheSnakeWitcher/nvim
/
1 init.lua 98 11127