fix neorg dependencies and nix syntax change in update
This commit is contained in:
parent
47aa7eb7c5
commit
5dae59a42b
1 changed files with 16 additions and 4 deletions
|
|
@ -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", "<M-CR>")
|
||||
keybinds.remap_event("norg", "i", "<S-CR>", "core.itero.next-iteration", "<CR>")
|
||||
end
|
||||
function(keybinds)
|
||||
keybinds.unmap("norg", "i", "<M-CR>")
|
||||
keybinds.remap_event("norg", "i", "<S-CR>", "core.itero.next-iteration", "<CR>")
|
||||
end
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue