Skip to content

Commit 4e10040

Browse files
committed
add new plugs
1 parent 8e2a82e commit 4e10040

File tree

5 files changed

+91
-1
lines changed

5 files changed

+91
-1
lines changed

init.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -870,7 +870,7 @@ require('lazy').setup({
870870
-- This is the easiest way to modularize your config.
871871
--
872872
-- Uncomment the following line and add your plugins to `lua/custom/plugins/*.lua` to get going.
873-
-- { import = 'custom.plugins' },
873+
{ import = 'custom.plugins' },
874874
--
875875
-- For additional information with loading, sourcing and examples see `:help lazy.nvim-🔌-plugin-spec`
876876
-- Or use telescope!

lua/custom/plugins/copilot-cmp.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,7 @@ else
1414
},
1515
}
1616
end
17+
18+
return {
19+
'https://github.com/mbbill/undotree',
20+
}

lua/custom/plugins/init.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,5 @@ return {}
1818
-- https://github.com/vipul-sharma20/nvim-jira
1919
-- https://github.com/walterl/centerfold
2020
-- https://github.com/tricktux/pomodoro.vim/tree/master - but fork it into your own in lua
21+
-- https://github.com/mbbill/undotree
2122
--]]
Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
if true then
2+
return {}
3+
else
4+
return {
5+
'gerazov/ollama-chat.nvim',
6+
dependencies = {
7+
'nvim-lua/plenary.nvim',
8+
'stevearc/dressing.nvim',
9+
'nvim-telescope/telescope.nvim',
10+
},
11+
-- lazy load on command
12+
cmd = {
13+
'OllamaQuickChat',
14+
'OllamaCreateNewChat',
15+
'OllamaContinueChat',
16+
'OllamaChat',
17+
'OllamaChatCode',
18+
'OllamaModel',
19+
'OllamaServe',
20+
'OllamaServeStop',
21+
},
22+
23+
keys = {
24+
{
25+
'<leader>ocq',
26+
'<cmd>OllamaQuickChat<cr>',
27+
desc = 'Ollama Quick Chat',
28+
mode = { 'n', 'x' },
29+
silent = true,
30+
},
31+
{
32+
'<leader>ocn',
33+
'<cmd>OllamaCreateNewChat<cr>',
34+
desc = 'Create Ollama Chat',
35+
mode = { 'n', 'x' },
36+
silent = true,
37+
},
38+
{
39+
'<leader>occ',
40+
'<cmd>OllamaContinueChat<cr>',
41+
desc = 'Continue Ollama Chat',
42+
mode = { 'n', 'x' },
43+
silent = true,
44+
},
45+
{
46+
'<leader>och',
47+
'<cmd>OllamaChat<cr>',
48+
desc = 'Chat',
49+
mode = { 'n' },
50+
silent = true,
51+
},
52+
{
53+
'<leader>ocd',
54+
'<cmd>OllamaChatCode<cr>',
55+
desc = 'Chat Code',
56+
mode = { 'n' },
57+
silent = true,
58+
},
59+
},
60+
61+
opts = {
62+
chats_folder = vim.fn.stdpath 'data', -- data folder is ~/.local/share/nvim
63+
-- you can also choose "current" and "tmp"
64+
quick_chat_file = 'ollama-chat.md',
65+
animate_spinner = true, -- set this to false to disable spinner animation
66+
model = 'openhermes2-mistral',
67+
model_code = 'codellama',
68+
url = 'http://127.0.0.1:11434',
69+
serve = {
70+
on_start = false,
71+
command = 'ollama',
72+
args = { 'serve' },
73+
stop_command = 'pkill',
74+
stop_args = { '-SIGTERM', 'ollama' },
75+
},
76+
},
77+
}
78+
end

lua/custom/plugins/undotree.lua

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
if true then
2+
return {}
3+
else
4+
return {
5+
'https://github.com/mbbill/undotree',
6+
}
7+
end

0 commit comments

Comments
 (0)