This commit is contained in:
2026-03-11 20:55:52 +00:00
parent 3138f6ce11
commit b64a7416c9
2 changed files with 21 additions and 1 deletions

View File

@@ -35,6 +35,26 @@
end, { force = true, all = true }) end, { force = true, all = true })
end end
end end
-- Fix grammar-bundled treesitter queries that use #match? with Lua pattern
-- syntax (e.g. %d) instead of Vim regex. Neovim 0.11 picks the first
-- non-extending query file in the rtp as the base, so the grammar-bundled
-- (buggy) queries take precedence over the corrected site-level queries.
-- Override affected languages with the site-level version.
do
local langs = { "sql" }
for _, lang in ipairs(langs) do
local files = vim.api.nvim_get_runtime_file(
"queries/" .. lang .. "/highlights.scm", true)
if #files > 1 then
local f = io.open(files[#files])
if f then
vim.treesitter.query.set(lang, "highlights", f:read("*all"))
f:close()
end
end
end
end
''; '';
}; };
} }

View File

@@ -79,7 +79,7 @@
ExecStart = "${inputs'.llm-agents.packages.opencode}/bin/opencode serve --port 18822"; ExecStart = "${inputs'.llm-agents.packages.opencode}/bin/opencode serve --port 18822";
Restart = "on-failure"; Restart = "on-failure";
RestartSec = 5; RestartSec = 5;
Environment = "PATH=${pkgs.lib.makeBinPath [inputs'.llm-agents.packages.opencode pkgs.coreutils pkgs.nodejs_24 pkgs.nushell]}:/run/current-system/sw/bin"; Environment = "PATH=${config.home.profileDirectory}/bin:/run/current-system/sw/bin";
}; };
Install = { Install = {
WantedBy = ["default.target"]; WantedBy = ["default.target"];