Merge branch 'main' of codeberg.org:dnscio/nix-config
This commit is contained in:
commit
191b6c7d85
5 changed files with 66 additions and 25 deletions
|
|
@ -28,7 +28,10 @@ return {
|
|||
},
|
||||
sources = {
|
||||
default = { "lazydev", "lsp", "path", "snippets", "buffer" },
|
||||
per_filetype = { sql = { "dadbod" } },
|
||||
per_filetype = {
|
||||
sql = { "dadbod" },
|
||||
codecompanion = { "codecompanion" },
|
||||
},
|
||||
providers = {
|
||||
dadbod = { module = "vim_dadbod_completion.blink" },
|
||||
lazydev = {
|
||||
|
|
|
|||
26
modules/nvim/config/lua/plugins/codecompanion.lua
Normal file
26
modules/nvim/config/lua/plugins/codecompanion.lua
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
return {
|
||||
"olimorris/codecompanion.nvim",
|
||||
config = function()
|
||||
require("codecompanion").setup({
|
||||
strategies = {
|
||||
chat = {
|
||||
adapter = "anthropic",
|
||||
},
|
||||
inline = {
|
||||
adapter = "anthropic",
|
||||
},
|
||||
},
|
||||
})
|
||||
|
||||
vim.cmd([[cab cc CodeCompanion]])
|
||||
end,
|
||||
dependencies = {
|
||||
"nvim-lua/plenary.nvim",
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
},
|
||||
keys = {
|
||||
{ "<leader>cc", "<cmd>CodeCompanionChat Toggle<cr>", desc = "Open companion chat", mode = "n" },
|
||||
{ "<leader>ca", "<cmd>CodeCompanionActions<cr>", desc = "Open companion actions", mode = "n" },
|
||||
{ "ga", "<cmd>CodeCompanionChat Add<cr>", desc = "Add selection", mode = "v" },
|
||||
},
|
||||
}
|
||||
9
modules/nvim/config/lua/plugins/mini.diff.lua
Normal file
9
modules/nvim/config/lua/plugins/mini.diff.lua
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
return {
|
||||
"echasnovski/mini.diff",
|
||||
config = function()
|
||||
local diff = require("mini.diff")
|
||||
diff.setup({
|
||||
source = diff.gen_source.none(),
|
||||
})
|
||||
end,
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue