From 9a1701b5d6364e540b7af3d9de55a644e330fcfd Mon Sep 17 00:00:00 2001 From: Alexander M Pickering Date: Sat, 5 Jul 2025 16:34:34 -0500 Subject: AI additions --- nvim/ginit.vim | 4 +++- nvim/init.vim | 16 ++++++++++++---- 2 files changed, 15 insertions(+), 5 deletions(-) (limited to 'nvim') diff --git a/nvim/ginit.vim b/nvim/ginit.vim index a79795b..dc40609 100644 --- a/nvim/ginit.vim +++ b/nvim/ginit.vim @@ -1,5 +1,5 @@ -if exists("g:fvim_loaded") +if exists("g:fvim_loaded") || exists("g:nvy") set guifont=LiterationMono\ Nerd\ Font\ Mono:h18 nnoremap :FVimToggleFullScreen FVimCursorSmoothMove v:true @@ -8,3 +8,5 @@ if exists("g:fvim_loaded") nnoremap :FVimBackgroundComposition 'none':FVimBackgroundOpacity 1 FVimCustomTitleBar v:true endif + + diff --git a/nvim/init.vim b/nvim/init.vim index 82291a7..09dd212 100644 --- a/nvim/init.vim +++ b/nvim/init.vim @@ -319,7 +319,7 @@ endif " mason.nvim - lsp running lua require("mason").setup() -lua require("mason-lspconfig").setup({ensure_installed = {"lua_ls","harper-ls"}}) +"lua require("mason-lspconfig").setup({ensure_installed = {"lua_ls","harper-ls"}}) lua << EOF local cmp = require("cmp") @@ -424,16 +424,24 @@ do require("lualine").setup({sections = {lualine_x = {get_status_icon, ollama_loaded}}}) require("ollama").config.prompts.fgen = { prompt = [[ -Generate $ftype code that follows this code, keep any comments: +Generate $ftype code that keeps all comments and follows this code: -$sel +``` +$before +``` + +and could go before this code + +``` +$after +``` Respond EXACTLY in this format: ```$ftype ``` ]], - action = "insert" + action = "display_insert" } require("ollama").config.prompts.extend= { prompt = [[ -- cgit v1.2.3-70-g09d2