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.
333 3 0 2 days 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
laurigates/dotfiles
/neovim
2 init.lua 44 1602
TheSnakeWitcher/nvim
/
1 init.lua 158 14048
rneithon/dotfiles
/config/nvim
0 init.lua 163 5414