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:
parent
ba7e691a31
commit
fc779c6e82
1 changed files with 4 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue