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.
372 4 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.

Breaking changes in model.nvim

3b7333 2 weeks 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
432 init.lua 70 4246
laurigates/dotfiles
/neovim
2 init.lua 52 1579
rneithon/dotfiles
/config/nvim
1 init.lua 183 6578
TheSnakeWitcher/nvim
/
1 init.lua 159 14027