cleanup codecompanion, neogit, bump inputs

This commit is contained in:
iofq 2025-06-11 02:35:44 -05:00
parent ee647f4338
commit 8da416de1c
No known key found for this signature in database
GPG key ID: ECF3B2DA38BF7183
7 changed files with 37 additions and 99 deletions

54
flake.lock generated
View file

@ -74,11 +74,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1743550720, "lastModified": 1749398372,
"narHash": "sha256-hIshGgKZCgWh6AYJpJmRgFdR3WUbkY04o82X05xqQiY=", "narHash": "sha256-tYBdgS56eXYaWVW3fsnPQ/nFlgWi/Z2Ymhyu21zVM98=",
"owner": "hercules-ci", "owner": "hercules-ci",
"repo": "flake-parts", "repo": "flake-parts",
"rev": "c621e8422220273271f52058f618c94e405bb0f5", "rev": "9305fe4e5c2a6fcf5ba6a3ff155720fbe4076569",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -249,11 +249,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1747284884, "lastModified": 1748000383,
"narHash": "sha256-lTSKhRrassMcJ1ZsuUVunyl/F04vvCKY80HB/4rvvm4=", "narHash": "sha256-EaAJhwfJGBncgIV/0NlJviid2DP93cTMc9h0q6P6xXk=",
"owner": "hercules-ci", "owner": "hercules-ci",
"repo": "hercules-ci-effects", "repo": "hercules-ci-effects",
"rev": "7168f6002a6b48a9b6151e1e97e974a0722ecfdc", "rev": "231726642197817d20310b9d39dd4afb9e899489",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -281,11 +281,11 @@
"mini-nvim": { "mini-nvim": {
"flake": false, "flake": false,
"locked": { "locked": {
"lastModified": 1747734615, "lastModified": 1749301386,
"narHash": "sha256-Nym+lyfEkAdnEmUT6s8ejd+hTIMvC6tMUzJyZLmp6cg=", "narHash": "sha256-U6QkqrvmxEERLgrc3roBxMuNc8Djuxk/wOuH/Hwmu1M=",
"owner": "echasnovski", "owner": "echasnovski",
"repo": "mini.nvim", "repo": "mini.nvim",
"rev": "94cae4660a8b2d95dbbd56e1fbc6fcfa2716d152", "rev": "35e1767f4cd7dde51256eabae7349a5283a43cba",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -305,11 +305,11 @@
"treefmt-nix": "treefmt-nix" "treefmt-nix": "treefmt-nix"
}, },
"locked": { "locked": {
"lastModified": 1747786187, "lastModified": 1749625230,
"narHash": "sha256-9SSsln1nd3SnECH7I466UzLZ2luJS1phTOYG0ehRAxQ=", "narHash": "sha256-o65mGvIz4+5gqyFG0gLK6BqIVRGqxl0AiY6Xy5De+Qk=",
"owner": "nix-community", "owner": "nix-community",
"repo": "neovim-nightly-overlay", "repo": "neovim-nightly-overlay",
"rev": "1709adcc65a1779b6513db3470dad257de7c24ae", "rev": "34f4b17993e9ec8e8a5c8a1cec5847b4520b3d26",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -321,11 +321,11 @@
"neovim-src": { "neovim-src": {
"flake": false, "flake": false,
"locked": { "locked": {
"lastModified": 1747760768, "lastModified": 1749599615,
"narHash": "sha256-5oDiP8Yn93692CUEH81LJbZxPIprIozLHdkFt5N9Np4=", "narHash": "sha256-7A4cafY420gsxdCA0yZhlOMjBSLzu3156QFEeAmcwrk=",
"owner": "neovim", "owner": "neovim",
"repo": "neovim", "repo": "neovim",
"rev": "cd9d8469b22cedeb5ccad3def6e3cfee2877577f", "rev": "79ce71430fe5480e37a150522e2c6c925f5d0e66",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -336,11 +336,11 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1747728033, "lastModified": 1749523198,
"narHash": "sha256-NnXFQu7g4LnvPIPfJmBuZF7LFy/fey2g2+LCzjQhTUk=", "narHash": "sha256-How2kQw0psKmCdXgojc95Sf3K5maHB3qfINxTZFCAPM=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "2f9173bde1d3fbf1ad26ff6d52f952f9e9da52ea", "rev": "cdc68935eba9f86d155585fdf6f17af6824f38ac",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -380,11 +380,11 @@
}, },
"nixpkgs-uns": { "nixpkgs-uns": {
"locked": { "locked": {
"lastModified": 1747744144, "lastModified": 1749285348,
"narHash": "sha256-W7lqHp0qZiENCDwUZ5EX/lNhxjMdNapFnbErcbnP11Q=", "narHash": "sha256-frdhQvPbmDYaScPFiCnfdh3B/Vh81Uuoo0w5TkWmmjU=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "2795c506fe8fb7b03c36ccb51f75b6df0ab2553f", "rev": "3e3afe5174c561dee0df6f2c2b2236990146329f",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -396,11 +396,11 @@
}, },
"nixpkgs_2": { "nixpkgs_2": {
"locked": { "locked": {
"lastModified": 1747894227, "lastModified": 1749625384,
"narHash": "sha256-iMzxxhwF4ZqRDrMl7/kKPCiO0uWpnGywJ+oMPEvnP/Y=", "narHash": "sha256-DjWYlOFrddI5t5w4mimZJo1RGp2qxhcvTYWSZjx9+3I=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "ebcc1d6f281ceef7854bea032b65a5609ee45fad", "rev": "ab301cc663dc2db37c53933b33d1070cb72934ec",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -443,11 +443,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1747469671, "lastModified": 1749194973,
"narHash": "sha256-bo1ptiFoNqm6m1B2iAhJmWCBmqveLVvxom6xKmtuzjg=", "narHash": "sha256-eEy8cuS0mZ2j/r/FE0/LYBSBcIs/MKOIVakwHVuqTfk=",
"owner": "numtide", "owner": "numtide",
"repo": "treefmt-nix", "repo": "treefmt-nix",
"rev": "ab0378b61b0d85e73a8ab05d5c6029b5bd58c9fb", "rev": "a05be418a1af1198ca0f63facb13c985db4cb3c5",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -17,7 +17,6 @@ with final.pkgs.lib; let
blink-cmp blink-cmp
blink-copilot blink-copilot
blink-ripgrep-nvim blink-ripgrep-nvim
codecompanion-nvim
conform-nvim conform-nvim
copilot-lua copilot-lua
diffview-nvim diffview-nvim
@ -25,7 +24,6 @@ with final.pkgs.lib; let
friendly-snippets friendly-snippets
lazy-nvim lazy-nvim
mini-nvim-git mini-nvim-git
neogit
nightfox-nvim nightfox-nvim
nvim-lint nvim-lint
nvim-lspconfig nvim-lspconfig

View file

@ -58,6 +58,7 @@ vim.diagnostic.config {
} }
-- random keymaps -- random keymaps
vim.keymap.set({ 'v', 'i' }, 'wq', '<esc>l', { noremap = true, silent = true })
vim.keymap.set('n', '<S-l>', vim.cmd.bnext, { noremap = true, silent = true }) vim.keymap.set('n', '<S-l>', vim.cmd.bnext, { noremap = true, silent = true })
vim.keymap.set('n', '<S-h>', vim.cmd.bprev, { noremap = true, silent = true }) vim.keymap.set('n', '<S-h>', vim.cmd.bprev, { noremap = true, silent = true })
vim.keymap.set('v', '<', '<gv') vim.keymap.set('v', '<', '<gv')

View file

@ -11,45 +11,4 @@ return {
}, },
}, },
}, },
{
'olimorris/codecompanion.nvim',
cmd = 'Copilot',
dependencies = {
'nvim-lua/plenary.nvim',
'nvim-treesitter/nvim-treesitter',
'zbirenbaum/copilot.lua',
'MeanderingProgrammer/render-markdown.nvim',
},
opts = {
strategies = {
chat = { adapter = 'copilot' },
inline = { adapter = 'copilot' },
},
adapters = {
ollama = function()
return require('codecompanion.adapters').extend('ollama', {
schema = {
model = { default = 'qwen2.5-coder:1.5b' },
},
})
end,
},
},
keys = {
{
'<leader>as',
'<cmd>CodeCompanionChat Add<CR>',
noremap = true,
mode = { 'n', 'v' },
desc = 'Copilot chat add selection',
},
{
'<leader>aa',
'<cmd>CodeCompanionActions<CR>',
noremap = true,
mode = { 'n', 'v' },
desc = 'Copilot inline',
},
},
},
} }

View file

@ -92,9 +92,9 @@ return {
'%<', -- Mark general truncate point '%<', -- Mark general truncate point
{ hl = 'MiniStatuslineFilename', strings = { '' } }, { hl = 'MiniStatuslineFilename', strings = { '' } },
'%=', -- End left alignment '%=', -- End left alignment
{ hl = 'MiniStatusDevinfo', strings = { diff, diagnostics, lsp } }, { hl = 'MiniStatusDevinfo', strings = { diff, diagnostics, lsp } },
{ hl = 'MiniStatuslineFilename', strings = { search } }, { hl = 'MiniStatuslineFilename', strings = { search } },
{ hl = mode_hl, strings = { mode } }, { hl = mode_hl, strings = { mode } },
} }
end, end,
inactive = function() inactive = function()
@ -150,10 +150,10 @@ return {
miniclue.gen_clues.registers(), miniclue.gen_clues.registers(),
miniclue.gen_clues.windows(), miniclue.gen_clues.windows(),
miniclue.gen_clues.z(), miniclue.gen_clues.z(),
{ mode = 'n', keys = '<Leader>wj', postkeys = '<Leader>w', desc = 'TS Down' }, { mode = 'n', keys = '<Leader>wj', postkeys = '<Leader>w', desc = 'TS Down' },
{ mode = 'n', keys = '<Leader>wk', postkeys = '<Leader>w', desc = 'TS Up' }, { mode = 'n', keys = '<Leader>wk', postkeys = '<Leader>w', desc = 'TS Up' },
{ mode = 'n', keys = '<Leader>wh', postkeys = '<Leader>w', desc = 'TS Left' }, { mode = 'n', keys = '<Leader>wh', postkeys = '<Leader>w', desc = 'TS Left' },
{ mode = 'n', keys = '<Leader>wl', postkeys = '<Leader>w', desc = 'TS Right' }, { mode = 'n', keys = '<Leader>wl', postkeys = '<Leader>w', desc = 'TS Right' },
{ mode = 'n', keys = '<Leader>w<C-J>', postkeys = '<Leader>w', desc = 'Swap TS Down' }, { mode = 'n', keys = '<Leader>w<C-J>', postkeys = '<Leader>w', desc = 'Swap TS Down' },
{ mode = 'n', keys = '<Leader>w<C-K>', postkeys = '<Leader>w', desc = 'Swap TS Up' }, { mode = 'n', keys = '<Leader>w<C-K>', postkeys = '<Leader>w', desc = 'Swap TS Up' },
{ mode = 'n', keys = '<Leader>w<C-H>', postkeys = '<Leader>w', desc = 'Swap TS Left' }, { mode = 'n', keys = '<Leader>w<C-H>', postkeys = '<Leader>w', desc = 'Swap TS Left' },
@ -179,9 +179,8 @@ return {
vim.keymap.set('n', '<leader>nm', map.toggle, { noremap = true, desc = 'minimap open' }) vim.keymap.set('n', '<leader>nm', map.toggle, { noremap = true, desc = 'minimap open' })
local multi = require('mini.keymap').map_multistep local multi = require('mini.keymap').map_multistep
local combo = require('mini.keymap').map_combo multi({ 'i' }, '<BS>', { 'minipairs_bs' })
combo({ 'v', 'i', 's' }, 'wq', '<BS><BS><Esc>l') multi({ 'i', 's' }, '<Tab>', { 'blink_accept', 'vimsnippet_next', 'increase_indent' })
multi({ 'i', 's' }, '<Tab>', { 'vimsnippet_next', 'increase_indent' })
multi({ 'i', 's' }, '<S-Tab>', { 'vimsnippet_prev', 'decrease_indent' }) multi({ 'i', 's' }, '<S-Tab>', { 'vimsnippet_prev', 'decrease_indent' })
end) end)
end, end,

View file

@ -37,7 +37,7 @@ return {
'MeanderingProgrammer/render-markdown.nvim', 'MeanderingProgrammer/render-markdown.nvim',
event = 'VeryLazy', event = 'VeryLazy',
opts = { opts = {
file_types = { 'markdown', 'codecompanion' }, file_types = { 'markdown' },
}, },
}, },
{ {
@ -77,24 +77,6 @@ return {
}, },
}, },
}, },
{
'NeogitOrg/neogit',
opts = {
disable_builtin_notifications = true,
integrations = {
diffview = true,
},
},
keys = {
{
'<leader>ng',
function()
require('neogit').open()
end,
{ noremap = true, silent = true, desc = 'Neogit' },
},
},
},
{ {
'EdenEast/nightfox.nvim', 'EdenEast/nightfox.nvim',
lazy = false, lazy = false,

View file

@ -78,7 +78,6 @@ return {
incremental_selection = { incremental_selection = {
enable = true, enable = true,
keymaps = { keymaps = {
init_selection = '<CR>',
node_incremental = 'v', node_incremental = 'v',
node_decremental = '<S-TAB>', node_decremental = '<S-TAB>',
}, },