Skip to content

Commit 01d8daf

Browse files
committed
modules/performance: add plenary filetypes directory to default pathsToLink
plenary.nvim is often pulled as a dependency of other plugins. It has filetype definitions in `data/plenary/filetypes` directory. Even though I don't think there are plugins using it instead of vim.filetype, but it should be no harm to add this directory by default.
1 parent 65a75a5 commit 01d8daf

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

modules/performance.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ in
5656
"/after"
5757
# ftdetect
5858
"/ftdetect"
59+
# plenary.nvim
60+
"/data/plenary/filetypes"
5961
];
6062
};
6163
}

tests/test-sources/modules/performance/combine-plugins.nix

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -374,4 +374,14 @@ in
374374
}
375375
];
376376
};
377+
378+
# Test if plenary.filetype is working
379+
plenary-nvim = {
380+
performance.combinePlugins.enable = true;
381+
extraPlugins = [ pkgs.vimPlugins.plenary-nvim ];
382+
extraConfigLuaPost = ''
383+
-- Plenary filetype detection is usable
384+
assert(require("plenary.filetype").detect(".bashrc") == "sh", "plenary.filetype is not working")
385+
'';
386+
};
377387
}

0 commit comments

Comments
 (0)