This commit is contained in:
Dino Danic 2025-03-26 15:26:42 +01:00
parent 49a2c15d1d
commit af22c7ff32
7 changed files with 83 additions and 6 deletions

View file

@ -8,7 +8,7 @@ return {
provider = 'openai',
openai = {
endpoint = 'https://api.openai.com/v1',
model = 'gpt-4o-mini', -- your desired model (or use gpt-4o, etc.)
model = 'gpt-4o', -- your desired model (or use gpt-4o, etc.)
timeout = 30000, -- Timeout in milliseconds, increase this for reasoning models
temperature = 0,
max_completion_tokens = 8192, -- Increase this to include reasoning tokens (for reasoning models)

View file

@ -0,0 +1,45 @@
return {
'ThePrimeagen/harpoon',
branch = 'harpoon2',
dependencies = { 'nvim-lua/plenary.nvim' },
config = function()
local harpoon = require 'harpoon'
-- REQUIRED
harpoon:setup()
-- REQUIRED
vim.keymap.set('n', '<leader>oa', function()
harpoon:list():add()
end, { desc = 'Add File' })
vim.keymap.set('n', '<leader>oi', function()
harpoon.ui:toggle_quick_menu(harpoon:list())
end, { desc = 'Open L[I]st' })
vim.keymap.set('n', '<leader>1', function()
harpoon:list():select(1)
end, { desc = 'Select [1]' })
vim.keymap.set('n', '<leader>2', function()
harpoon:list():select(2)
end, { desc = 'Select [2]' })
vim.keymap.set('n', '<leader>3', function()
harpoon:list():select(3)
end, { desc = 'Select [3]' })
vim.keymap.set('n', '<leader>4', function()
harpoon:list():select(4)
end, { desc = 'Select [4]' })
-- Toggle previous & next buffers stored within Harpoon list
vim.keymap.set('n', '<leader>oj', function()
harpoon:list():prev()
end, { desc = 'Previus File' })
vim.keymap.set('n', '<leader>ok', function()
harpoon:list():next()
end, { desc = 'Next File' })
end,
}

View file

@ -14,6 +14,7 @@ return {
},
-------------------------------------UTILS-------------------------------------
require 'custom.plugins.avante',
-- i use this so i can comment in TS components etc
'JoosepAlviste/nvim-ts-context-commentstring',
{
'numToStr/Comment.nvim',
@ -59,7 +60,7 @@ return {
'<leader>y',
mode = { 'n', 'v' },
'<cmd>Yazi<cr>',
desc = 'Open yazi at the current file',
desc = 'Open [Y]azi at the current file',
},
},
opts = {