Skip to content

Commit

Permalink
Adds spellcheck and ollama chat
Browse files Browse the repository at this point in the history
  • Loading branch information
usodst committed May 17, 2024
1 parent ca013fc commit 3d68dc2
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
1 change: 1 addition & 0 deletions init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ vim.opt.tabstop = 4
vim.opt.softtabstop = 4
vim.opt.shiftwidth = 4
vim.opt.relativenumber = true
vim.opt.spell = true
vim.lsp.set_log_level("off")

vim.api.nvim_create_autocmd("FileType", {
Expand Down
14 changes: 11 additions & 3 deletions plugins.lua
Original file line number Diff line number Diff line change
Expand Up @@ -116,15 +116,16 @@ local plugins = {
ft = "mchat",

keys = {
{ "<C-m>d", ":Mdelete<cr>", mode = "n" },
{ "<C-m>s", ":Mselect<cr>", mode = "n" },
{ "<C-m><space>", ":Mchat<cr>", mode = "n" },
{ "<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()
local ollama = require "model.providers.ollama"
local starters = require "model.prompts.chats"
require("model").setup {
default_prompt = {
provider = ollama,
Expand All @@ -140,6 +141,13 @@ local plugins = {
}
end,
},
chats = {
["ollama:starling"] = vim.tbl_deep_extend("force", starters["ollama:starling"], {
options = {
url = "http://localhost:11434"
},
}),
},
}
end,

Expand Down

0 comments on commit 3d68dc2

Please sign in to comment.