From ddc63eb9b01c197ed998c08c4e79c3a54516860c Mon Sep 17 00:00:00 2001 From: Alex Pickering Date: Sun, 13 Jul 2025 17:55:08 -0500 Subject: Add magenta --- nvim/init.vim | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) (limited to 'nvim/init.vim') diff --git a/nvim/init.vim b/nvim/init.vim index 7948a5f..4cdf861 100644 --- a/nvim/init.vim +++ b/nvim/init.vim @@ -126,6 +126,7 @@ Plug 'ryanoasis/vim-devicons' "on Plug 'nomnivore/ollama.nvim' Plug 'nvim-lualine/lualine.nvim' +Plug 'dlants/magenta.nvim', {'do': 'npm install --frozen-lockfile'} " Terraform Plug 'hashivim/vim-terraform' @@ -508,9 +509,9 @@ nnoremap y :let @+ = expand('%') lua require("ollama").config.model = "codestral" nnoremap gg :lua require("ollama").prompt("fgen") vnoremap gh :lua require("ollama").prompt("Explain_Code") -vnoremap gG :lua require("ollama").prompt("rewrite") -nnoremap gt :lua require("ollama").prompt("Raw") -nnoremap gr :lua require("ollama").prompt("review") +vnoremap gG :lua require("ollama").prompt("rewrite") +nnoremap gt :lua require("ollama").prompt("Raw") +nnoremap gr :lua require("ollama").prompt("review") lua << EOF vim.api.nvim_create_autocmd('FileType', { -- This handler will fire when the buffer's 'filetype' is "lua" @@ -542,6 +543,20 @@ lua << EOF ]] EOF +" Magenta.nvim +lua << EOF +require('magenta').setup({ + profiles = { + { + name = "local-codestral", + provider = "ollama", + model = "dolphin3:latest" + } + }, + picker = "telescope" +}) +EOF + " Acrisure " Sqlfluf leader+sql -- cgit v1.2.3-70-g09d2