File tree Expand file tree Collapse file tree 2 files changed +20
-1
lines changed
tests/test-sources/plugins/telescope Expand file tree Collapse file tree 2 files changed +20
-1
lines changed Original file line number Diff line number Diff line change 66} :
77with lib ;
88let
9- inherit ( lib . nixvim ) keymaps mkNullOrOption toLuaObject ;
9+ inherit ( lib . nixvim )
10+ keymaps
11+ mkNullOrOption
12+ mkPackageOption
13+ toLuaObject
14+ ;
1015in
1116# TODO:add support for additional filetypes. This requires autocommands!
1217lib . nixvim . neovim-plugin . mkNeovimPlugin config {
@@ -85,10 +90,17 @@ lib.nixvim.neovim-plugin.mkNeovimPlugin config {
8590 added to `extraPackages`.
8691 '' ;
8792 } ;
93+
94+ iconsPackage = mkPackageOption {
95+ name = "nvim-web-devicons" ;
96+ default = pkgs . vimPlugins . nvim-web-devicons ;
97+ } ;
8898 } ;
8999
90100 callSetup = false ;
91101 extraConfig = cfg : {
102+ extraPlugins = mkIf ( cfg . iconsPackage != null ) [ cfg . iconsPackage ] ;
103+
92104 extraConfigVim = mkIf ( cfg . highlightTheme != null ) ''
93105 let $BAT_THEME = '${ cfg . highlightTheme } '
94106 '' ;
Original file line number Diff line number Diff line change 3030 assert(vim.api.nvim_get_runtime_file("data/memes/planets/earth", false)[1], "telescope planets aren't found in runtime")
3131 '' ;
3232 } ;
33+
34+ no-packages = {
35+ plugins . telescope = {
36+ enable = true ;
37+ iconsPackage = null ;
38+ } ;
39+ } ;
3340}
You can’t perform that action at this time.
0 commit comments