Select a color scheme for your Dotfyle experience

gsuuon / model.nvim

model.nvim

Neovim plugin for interacting with LLM's and building editor integrated prompts.
268 3 0 14 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.

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
rstacruz/vimfiles
/
66 init.lua 69 2634
laurigates/dotfiles
/neovim
2 init.lua 42 1428
TheSnakeWitcher/nvim
/
1 init.lua 154 14998