summaryrefslogtreecommitdiff
path: root/nvim/init.vim
diff options
context:
space:
mode:
authorAlexander M Pickering <alex@cogarr.net>2025-07-05 16:34:34 -0500
committerAlexander M Pickering <alex@cogarr.net>2025-07-05 16:34:34 -0500
commit9a1701b5d6364e540b7af3d9de55a644e330fcfd (patch)
tree8a142a1d9f23a90142630de7c966efe01eb57a03 /nvim/init.vim
parentebe28d070be0926f473e0f87004140e85fc75d97 (diff)
downloaddotfiles-9a1701b5d6364e540b7af3d9de55a644e330fcfd.tar.gz
dotfiles-9a1701b5d6364e540b7af3d9de55a644e330fcfd.tar.bz2
dotfiles-9a1701b5d6364e540b7af3d9de55a644e330fcfd.zip
AI additions
Diffstat (limited to 'nvim/init.vim')
-rw-r--r--nvim/init.vim16
1 files changed, 12 insertions, 4 deletions
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
<your code>
```
]],
- action = "insert"
+ action = "display_insert"
}
require("ollama").config.prompts.extend= {
prompt = [[