nixvim
                                
                                
                                
                                    nixvim copied to clipboard
                            
                            
                            
                        [BUG] "global prefix" boolean settings are not converted to int
| Field | Description | 
|---|---|
| Plugin | lazygit | 
| Nixpkgs | unstable | 
| Home Manager | unstable | 
- [x] I have read the FAQ and my bug is not listed there.
 
Description
When plugins.lazygit.settings.use_custom_config_file_path is set to true, lazygit.nvim does not recognize it.
NixVim says this option is a bool and passes it on as such into the generated init.lua, but lazygit.nvim checks if the option is 1 to enable the feature.
Minimal, Reproducible Example (MRE)
programs.nixvim = {
  plugins.lazygit.settings = {
    use_custom_config_file_path = true;
    config_file_path = builtins.toString (pkgs.writeText "custom-lazygit-config.yml" ''
      # any options, e.g.
      gui:
        border: single
      notARepository: quit
    '');
  };
};
Workaround
programs.nixvim = {
  plugins.lazygit.settings = {
-   use_custom_config_file_path = true;
+   use_custom_config_file_path.__raw = 1;
    config_file_path = builtins.toString (pkgs.writeText "custom-lazygit-config.yml" ''
      # any options, e.g.
      gui:
        border: single
      notARepository: quit
    '');
  };
};