diff --git a/modules/performance.nix b/modules/performance.nix index 59233583a0..db0953d452 100644 --- a/modules/performance.nix +++ b/modules/performance.nix @@ -56,6 +56,8 @@ in "/after" # ftdetect "/ftdetect" + # plenary.nvim + "/data/plenary/filetypes" ]; }; } diff --git a/tests/test-sources/modules/performance/combine-plugins.nix b/tests/test-sources/modules/performance/combine-plugins.nix index d59c79642c..6290bdfe0a 100644 --- a/tests/test-sources/modules/performance/combine-plugins.nix +++ b/tests/test-sources/modules/performance/combine-plugins.nix @@ -374,4 +374,14 @@ in } ]; }; + + # Test if plenary.filetype is working + plenary-nvim = { + performance.combinePlugins.enable = true; + extraPlugins = [ pkgs.vimPlugins.plenary-nvim ]; + extraConfigLuaPost = '' + -- Plenary filetype detection is usable + assert(require("plenary.filetype").detect(".bashrc") == "sh", "plenary.filetype is not working") + ''; + }; }