From c620d32c51f40c5ff597e96eff9fee0bcef7ebc2 Mon Sep 17 00:00:00 2001 From: Christoph Schmatzler Date: Thu, 12 Mar 2026 21:14:21 +0000 Subject: [PATCH] fix --- modules/_neovim/plugins/opencode.nix | 17 ++++++++++++++--- modules/_neovim/plugins/treesitter.nix | 11 ++++++++++- 2 files changed, 24 insertions(+), 4 deletions(-) diff --git a/modules/_neovim/plugins/opencode.nix b/modules/_neovim/plugins/opencode.nix index f292e3c..5048f32 100644 --- a/modules/_neovim/plugins/opencode.nix +++ b/modules/_neovim/plugins/opencode.nix @@ -2,13 +2,13 @@ opencode-nvim = pkgs.vimUtils.buildVimPlugin { pname = "opencode-nvim"; - version = "unstable-2026-03-07"; + version = "unstable-2026-03-12"; src = pkgs.fetchFromGitHub { owner = "sudo-tee"; repo = "opencode.nvim"; - rev = "dffa3f39a8251c7ba53b1544d8536b5f51b4e90d"; - hash = "sha256-KxIuToMpyo/Yi4xKirMV8Fznlma6EL1k4YQm5MQdGw4="; + rev = "800c4f891f5d940f2805780a39872a0207b5a446"; + hash = "sha256-3xyZux5S8ThBsi7AC4AWnd2h2LEI5L+I5Am2PNWKu64="; }; doCheck = false; }; @@ -23,6 +23,17 @@ in { 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" }) ''; }; } diff --git a/modules/_neovim/plugins/treesitter.nix b/modules/_neovim/plugins/treesitter.nix index 2de8eec..bb93780 100644 --- a/modules/_neovim/plugins/treesitter.nix +++ b/modules/_neovim/plugins/treesitter.nix @@ -3,7 +3,16 @@ plugins.treesitter = { enable = 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 = { highlight.enable = true; indent.enable = true;