diff --git a/config/plugins/neorg.nix b/config/plugins/neorg.nix index f4a71cd..5b726d4 100644 --- a/config/plugins/neorg.nix +++ b/config/plugins/neorg.nix @@ -1,5 +1,17 @@ { pkgs, pkgs-stable, ... }: { + # https://github.com/nvim-neorg/neorg + # NOW neorg require lua-utils.nvim, nvim-nio, pathlib.vim + # https://github.com/nix-community/nixvim/issues/1395#issuecomment-2267262919 + # Workaround + extraPlugins = [ + (pkgs.vimUtils.buildVimPlugin { inherit (pkgs.luaPackages.lua-utils-nvim) pname version src; }) + + (pkgs.vimUtils.buildVimPlugin { inherit (pkgs.luaPackages.pathlib-nvim) pname version src; }) + + (pkgs.vimUtils.buildVimPlugin { inherit (pkgs.luaPackages.nvim-nio) pname version src; }) + ]; + plugins = { neorg = { enable = true; @@ -33,10 +45,10 @@ config = { default_keybinds = true; hook.__raw = '' - function(keybinds) - keybinds.unmap("norg", "i", "") - keybinds.remap_event("norg", "i", "", "core.itero.next-iteration", "") - end + function(keybinds) + keybinds.unmap("norg", "i", "") + keybinds.remap_event("norg", "i", "", "core.itero.next-iteration", "") + end ''; }; };