Skip to content

Commit

Permalink
feat: blame!
Browse files Browse the repository at this point in the history
  • Loading branch information
yetone committed Dec 1, 2024
1 parent e39e0d0 commit ffa74f4
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 0 deletions.
17 changes: 17 additions & 0 deletions lua/layers/completion/plugins.lua
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,17 @@ cosmos.add_plugin('olimorris/codecompanion.nvim', {
opts = {
log_level = 'DEBUG',
},
strategies = {
chat = {
slash_commands = {
['file'] = {
opts = {
provider = 'default',
},
},
},
},
},
})
end,
})
Expand Down Expand Up @@ -135,6 +146,12 @@ cosmos.add_plugin('yetone/avante.nvim', {
endpoint = 'http://yetone-mac-mini:11434/v1',
model = 'qwen2.5-coder:14b',
},
mlc = {
__inherited_from = 'openai',
api_key_name = '',
endpoint = 'http://yetone-mac-mini:8000/v1',
model = 'qwen2.5-coder:32b',
},
groq = {
__inherited_from = 'openai',
api_key_name = 'GROQ_API_KEY',
Expand Down
4 changes: 4 additions & 0 deletions lua/layers/git/configs.lua
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,8 @@ function configs.gitportal()
})
end

function configs.blame()
require('blame').setup({})
end

return configs
5 changes: 5 additions & 0 deletions lua/layers/git/keymappings.lua
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,8 @@ cosmos.add_leader_keymapping('v|gp', {
end,
name = 'Open GitHub URL',
})

cosmos.add_leader_keymapping('n|gb', {
':BlameToggle window<CR>',
name = 'Blame',
})
5 changes: 5 additions & 0 deletions lua/layers/git/plugins.lua
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,8 @@ cosmos.add_plugin('nvim-telescope/telescope-github.nvim', {
cosmos.add_plugin('trevorhauter/gitportal.nvim', {
config = configs.gitportal,
})

cosmos.add_plugin('FabijanZulj/blame.nvim', {
lazy = false,
config = configs.blame,
})

0 comments on commit ffa74f4

Please sign in to comment.