mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 08:35:43 +02:00
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.
This commit is contained in:
parent
532b0044d0
commit
6e2ec5ed02
2 changed files with 12 additions and 0 deletions
|
@ -56,6 +56,8 @@ in
|
|||
"/after"
|
||||
# ftdetect
|
||||
"/ftdetect"
|
||||
# plenary.nvim
|
||||
"/data/plenary/filetypes"
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
@ -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")
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue