Add vimwiki-sync plugin to nixvim

This commit is contained in:
Sam 2024-07-19 11:27:05 +01:00
parent 82b0838f5c
commit c5da58fc3b
1 changed files with 24 additions and 1 deletions

View File

@ -1,4 +1,7 @@
{ pkgs, ... }:
{ pkgs, config, ... }:
let
user = config.home.username;
in
{
imports = [
./cmp.nix
@ -38,6 +41,16 @@
};
})
(pkgs.vimUtils.buildVimPlugin
{
name = "vimwiki-sync";
src = pkgs.fetchFromGitHub {
owner = "michal-h21";
repo = "vimwiki-sync";
rev = "99eeab3";
sha256 = "sha256-cz0dSFphIbQAI4AOqwIUpDBTuj/3xlOkhSlIVMdgsqM=";
};
})
# Keep vim-devicons as last entry
pkgs.vimPlugins.vim-devicons
@ -85,6 +98,16 @@
opts
)
end
-- Setup vimwiki
vim.g.vimwiki_list = {
{
syntax = "markdown",
ext = ".md",
path = "/home/${user}/.local/share/notes",
},
}
'';
}