tangled
alpha
login
or
join now
hyl.st
/
helm
2
fork
atom
nix config
2
fork
atom
overview
issues
pulls
pipelines
Merge branch 'main' of git.sealight.xyz:aynish/helm
Anish Lakhwara
2 months ago
328779b0
1ec0b1bb
+30
1 changed file
expand all
collapse all
unified
split
home
profiles
nvim
default.nix
+30
home/profiles/nvim/default.nix
···
90
90
sha256 = "czKjJgCpvRSdtR7rNGlJrluDgPIdx94KUyx33op5gdY=";
91
91
};
92
92
};
93
93
+
opencode-nvim = pkgs.vimUtils.buildVimPlugin {
94
94
+
pname = "opencode.nvim";
95
95
+
version = "2024-12-24";
96
96
+
src = pkgs.fetchFromGitHub {
97
97
+
owner = "NickvanDyke";
98
98
+
repo = "opencode.nvim";
99
99
+
rev = "dfca5bb214d78a600781d50da350238b3e6e2621";
100
100
+
hash = "sha256-W7fPGiLpKRe1Nw0MckigUijTNq+L9Z+vxOKcf3oNZf0=";
101
101
+
};
102
102
+
doCheck = false;
103
103
+
};
93
104
gh-addressed = pkgs.vimUtils.buildVimPlugin {
94
105
pname = "gh-addressed";
95
106
version = "2024-09-17";
···
1030
1041
vim.keymap.set('n', '<M-S-k>', '<Cmd>resize +2<CR>', {silent = true})
1031
1042
vim.keymap.set('n', '<M-S-l>', '<Cmd>vertical resize +2<CR>', {silent = true})
1032
1043
1044
1044
+
-- opencode.nvim setup with tmux provider
1045
1045
+
vim.g.opencode_opts = {
1046
1046
+
provider = {
1047
1047
+
enabled = "tmux",
1048
1048
+
tmux = {
1049
1049
+
-- default tmux provider settings work well
1050
1050
+
},
1051
1051
+
},
1052
1052
+
}
1053
1053
+
1054
1054
+
-- opencode.nvim keybindings
1055
1055
+
vim.keymap.set({ "n", "x" }, "<leader>oa", function() require("opencode").ask("@this: ") end, { desc = "Ask opencode" })
1056
1056
+
vim.keymap.set({ "n", "x" }, "<leader>os", function() require("opencode").select() end, { desc = "Select opencode action" })
1057
1057
+
vim.keymap.set({ "n", "t" }, "<leader>oo", function() require("opencode").toggle() end, { desc = "Toggle opencode" })
1058
1058
+
vim.keymap.set({ "n", "x" }, "<leader>op", function() return require("opencode").operator("@this ") end, { expr = true, desc = "Add range to opencode" })
1059
1059
+
1033
1060
-- Kitaab recent files (only date-based files, sorted reverse)
1034
1061
function KitaabRecent()
1035
1062
local pickers = require('telescope.pickers')
···
1191
1218
# custom
1192
1219
yuck-vim
1193
1220
nvim-parinfer
1221
1221
+
1222
1222
+
# opencode integration
1223
1223
+
opencode-nvim
1194
1224
# vim-processing
1195
1225
] ++ lib.optionals pkgs.stdenv.isLinux [
1196
1226
# Linux-only plugins