mirror of
				https://github.com/NotAShelf/nvf.git
				synced 2025-11-04 04:32:21 +00:00 
			
		
		
		
	* utility/leetcode-nvim: init * utility/leetcode.nvim: Clean Code Cleaned code upon PR review comments
		
			
				
	
	
		
			26 lines
		
	
	
	
		
			430 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			26 lines
		
	
	
	
		
			430 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
{
 | 
						|
  config,
 | 
						|
  lib,
 | 
						|
  ...
 | 
						|
}: let
 | 
						|
  inherit (lib.modules) mkIf;
 | 
						|
 | 
						|
  cfg = config.vim.utility.leetcode-nvim;
 | 
						|
in {
 | 
						|
  config = mkIf cfg.enable {
 | 
						|
    vim = {
 | 
						|
      startPlugins = [
 | 
						|
        "leetcode-nvim"
 | 
						|
        "plenary-nvim"
 | 
						|
        "fzf-lua"
 | 
						|
        "nui-nvim"
 | 
						|
      ];
 | 
						|
 | 
						|
      lazy.plugins.leetcode-nvim = {
 | 
						|
        package = "leetcode-nvim";
 | 
						|
        setupModule = "leetcode";
 | 
						|
        inherit (cfg) setupOpts;
 | 
						|
      };
 | 
						|
    };
 | 
						|
  };
 | 
						|
}
 |