Skip to content

Commit dad3f32

Browse files
Fri Sep 27 20:57:57 -03 2024
1 parent 3b55b27 commit dad3f32

File tree

1 file changed

+48
-16
lines changed

1 file changed

+48
-16
lines changed

lua/custom/plugins/init.lua

Lines changed: 48 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -173,15 +173,15 @@ return {
173173
end
174174

175175
require('telescope.pickers')
176-
.new({}, {
177-
prompt_title = 'Harpoon',
178-
finder = require('telescope.finders').new_table {
179-
results = file_paths,
180-
},
181-
previewer = conf.file_previewer {},
182-
sorter = conf.generic_sorter {},
183-
})
184-
:find()
176+
.new({}, {
177+
prompt_title = 'Harpoon',
178+
finder = require('telescope.finders').new_table {
179+
results = file_paths,
180+
},
181+
previewer = conf.file_previewer {},
182+
sorter = conf.generic_sorter {},
183+
})
184+
:find()
185185
end
186186

187187
vim.keymap.set('n', '<leader>se', function()
@@ -203,7 +203,7 @@ return {
203203
},
204204
{
205205
'projekt0n/github-nvim-theme',
206-
lazy = false, -- make sure we load this during startup if it is your main colorscheme
206+
lazy = false, -- make sure we load this during startup if it is your main colorscheme
207207
priority = 1000, -- make sure to load this before all the other start plugins
208208
config = function()
209209
require('github-theme').setup {
@@ -307,10 +307,10 @@ return {
307307
end,
308308
keys = {
309309
{ '<C-t>n', ':TestNearest<cr>', { desc = 'Test Nearest' } },
310-
{ '<C-t>f', ':TestFile<cr>', { desc = 'Test File' } },
311-
{ '<C-t>s', ':TestSuite<cr>', { desc = 'Test Suite' } },
312-
{ '<C-t>l', ':TestLast<cr>', { desc = 'Test Last' } },
313-
{ '<C-t>v', ':TestVisit<cr>', { desc = 'TestVist' } },
310+
{ '<C-t>f', ':TestFile<cr>', { desc = 'Test File' } },
311+
{ '<C-t>s', ':TestSuite<cr>', { desc = 'Test Suite' } },
312+
{ '<C-t>l', ':TestLast<cr>', { desc = 'Test Last' } },
313+
{ '<C-t>v', ':TestVisit<cr>', { desc = 'TestVist' } },
314314
},
315315
},
316316
{ 'EdenEast/nightfox.nvim' },
@@ -582,8 +582,8 @@ return {
582582
-- Optional, configure additional syntax highlighting / extmarks.
583583
-- This requires you have `conceallevel` set to 1 or 2. See `:help conceallevel` for more details.
584584
ui = {
585-
enable = false, -- set to false to disable all additional syntax features
586-
update_debounce = 200, -- update delay after a text change (in milliseconds)
585+
enable = false, -- set to false to disable all additional syntax features
586+
update_debounce = 200, -- update delay after a text change (in milliseconds)
587587
max_file_length = 5000, -- disable UI features for files with more than this many lines
588588
-- Define how various check-boxes are displayed
589589
checkboxes = {
@@ -664,6 +664,38 @@ return {
664664
lazy = false,
665665
priority = 1000,
666666
},
667+
{
668+
'nomnivore/ollama.nvim',
669+
dependencies = {
670+
'nvim-lua/plenary.nvim',
671+
},
672+
673+
-- All the user commands added by the plugin
674+
cmd = { 'Ollama', 'OllamaModel', 'OllamaServe', 'OllamaServeStop' },
675+
676+
keys = {
677+
-- Sample keybind for prompt menu. Note that the <c-u> is important for selections to work properly.
678+
{
679+
'<leader>oo',
680+
":<c-u>lua require('ollama').prompt()<cr>",
681+
desc = 'ollama prompt',
682+
mode = { 'n', 'v' },
683+
},
684+
685+
-- Sample keybind for direct prompting. Note that the <c-u> is important for selections to work properly.
686+
{
687+
'<leader>oG',
688+
":<c-u>lua require('ollama').prompt('Generate_Code')<cr>",
689+
desc = 'ollama Generate Code',
690+
mode = { 'n', 'v' },
691+
},
692+
},
693+
694+
---@type Ollama.Config
695+
opts = {
696+
model = "codellama"
697+
},
698+
},
667699
{
668700
'sainnhe/everforest',
669701
lazy = false,

0 commit comments

Comments
 (0)