1
0
Fork 0
mirror of https://github.com/nix-community/nixvim.git synced 2025-11-08 19:46:06 +01:00

plugins/project-nvim: place config before telescope

https://github.com/DrKJeff16/project.nvim/issues/22
This commit is contained in:
Matt Sturgeon 2025-10-02 00:24:50 +01:00
parent ba7e691a31
commit fc779c6e82

View file

@ -119,6 +119,10 @@ lib.nixvim.plugins.mkNeovimPlugin {
enableTelescope = lib.mkEnableOption "project-nvim telescope integration";
};
# Ensure project-nvim is set up before telescope
# See https://github.com/DrKJeff16/project.nvim/issues/22
configLocation = lib.mkOrder 900 "extraConfigLua";
extraConfig = cfg: {
warnings = lib.nixvim.mkWarnings "plugins.project-nvim" {
when = cfg.enableTelescope && (!config.plugins.telescope.enable);