This commit is contained in:
2026-03-12 21:14:21 +00:00
parent aa80055d58
commit c620d32c51
2 changed files with 24 additions and 4 deletions

View File

@@ -2,13 +2,13 @@
opencode-nvim = opencode-nvim =
pkgs.vimUtils.buildVimPlugin { pkgs.vimUtils.buildVimPlugin {
pname = "opencode-nvim"; pname = "opencode-nvim";
version = "unstable-2026-03-07"; version = "unstable-2026-03-12";
src = src =
pkgs.fetchFromGitHub { pkgs.fetchFromGitHub {
owner = "sudo-tee"; owner = "sudo-tee";
repo = "opencode.nvim"; repo = "opencode.nvim";
rev = "dffa3f39a8251c7ba53b1544d8536b5f51b4e90d"; rev = "800c4f891f5d940f2805780a39872a0207b5a446";
hash = "sha256-KxIuToMpyo/Yi4xKirMV8Fznlma6EL1k4YQm5MQdGw4="; hash = "sha256-3xyZux5S8ThBsi7AC4AWnd2h2LEI5L+I5Am2PNWKu64=";
}; };
doCheck = false; doCheck = false;
}; };
@@ -23,6 +23,17 @@ in {
show_ids = false, show_ids = false,
}, },
}) })
local hl = vim.api.nvim_set_hl
hl(0, "OpencodeBorder", { fg = "#9893a5" })
hl(0, "OpencodeToolBorder", { fg = "#cecacd" })
hl(0, "OpencodeDiffAdd", { bg = "#dfeadf" })
hl(0, "OpencodeDiffDelete", { bg = "#f2dde2" })
hl(0, "OpencodeAgentPlan", { bg = "#907aa9", fg = "#fffaf3" })
hl(0, "OpencodeAgentBuild", { bg = "#56949f", fg = "#fffaf3" })
hl(0, "OpencodeAgentCustom", { bg = "#ea9d34", fg = "#fffaf3" })
hl(0, "OpencodeContestualAction", { bg = "#dfdad9" })
hl(0, "OpencodeInputLegend", { bg = "#f2e9e1", fg = "#797593" })
''; '';
}; };
} }

View File

@@ -3,7 +3,16 @@
plugins.treesitter = { plugins.treesitter = {
enable = true; enable = true;
nixGrammars = true; nixGrammars = true;
grammarPackages = pkgs.vimPlugins.nvim-treesitter.allGrammars; grammarPackages = with pkgs.vimPlugins.nvim-treesitter-parsers; [
css
elixir
javascript
lua
markdown
markdown_inline
nix
typescript
];
settings = { settings = {
highlight.enable = true; highlight.enable = true;
indent.enable = true; indent.enable = true;