-
-
Notifications
You must be signed in to change notification settings - Fork 303
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
717e706
commit 3c7b6ae
Showing
2 changed files
with
59 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
{ | ||
config, | ||
lib, | ||
pkgs, | ||
... | ||
}: | ||
lib.nixvim.neovim-plugin.mkNeovimPlugin { | ||
name = "telekasten"; | ||
originalName = "telekasten.nvim"; | ||
package = "telekasten-nvim"; | ||
|
||
maintainers = [ lib.maintainers.onemoresuza ]; | ||
|
||
settingsExample = { | ||
home.__raw = ''vim.fn.expand("~/zettelkasten")''; | ||
}; | ||
|
||
# TODO: Remove once nixpkgs #349346 lands, since it will have plenary-nvim as | ||
# a dependency. | ||
extraOptions = { | ||
plenaryPackage = lib.mkPackageOption pkgs.vimPlugins "plenary-nvim" { nullable = true; }; | ||
}; | ||
|
||
# TODO: Remove once nixpkgs #349346 lands, since it will have telescope-nvim | ||
# as a dependency. | ||
extraConfig = cfg: { | ||
assertions = [ | ||
{ | ||
assertion = config.plugins.telescope.enable; | ||
message = '' | ||
Nixvim (plugins.telekasten): The plugin needs telescope to function as intended. | ||
''; | ||
} | ||
]; | ||
extraPlugins = [ cfg.plenaryPackage ]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
empty = { | ||
plugins = { | ||
telescope.enable = true; | ||
telekasten.enable = true; | ||
web-devicons.enable = false; | ||
}; | ||
}; | ||
|
||
example = { | ||
plugins = { | ||
telescope.enable = true; | ||
telekasten = { | ||
enable = true; | ||
settings = { | ||
home.__raw = ''vim.fn.expand("~/zettelkasten")''; | ||
}; | ||
}; | ||
web-devicons.enable = false; | ||
}; | ||
}; | ||
} |