Skip to content

Commit

Permalink
luaPackages.orgmode: fix tree-sitter-org error
Browse files Browse the repository at this point in the history
  • Loading branch information
khaneliman committed Feb 17, 2025
1 parent 5f30488 commit 11377d7
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions pkgs/development/lua-modules/overrides.nix
Original file line number Diff line number Diff line change
Expand Up @@ -1110,6 +1110,16 @@ in
];
});

orgmode = prev.orgmode.overrideAttrs (oa: {
# Patch in tree-sitter-orgmode dependency
postPatch = ''
substituteInPlace lua/orgmode/config/init.lua \
--replace-fail \
"pcall(vim.treesitter.language.add, 'org')" \
"pcall(function() vim.treesitter.language.add('org', { path = '${final.tree-sitter-orgmode}/lib/lua/${final.tree-sitter-orgmode.lua.luaversion}/parser/org.so'}) end)"
'';
});

tree-sitter-orgmode = prev.tree-sitter-orgmode.overrideAttrs (oa: {
propagatedBuildInputs =
let
Expand Down

0 comments on commit 11377d7

Please sign in to comment.