mirror of
				https://github.com/NotAShelf/nvf.git
				synced 2025-11-04 04:32:21 +00:00 
			
		
		
		
	feat: deprecate kommentary
This commit is contained in:
		
					parent
					
						
							
								5941502e37
							
						
					
				
			
			
				commit
				
					
						008ea23033
					
				
			
		
					 3 changed files with 0 additions and 25 deletions
				
			
		| 
						 | 
					@ -190,7 +190,6 @@ inputs: let
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      vim.comments = {
 | 
					      vim.comments = {
 | 
				
			||||||
        comment-nvim.enable = true;
 | 
					        comment-nvim.enable = true;
 | 
				
			||||||
        kommentary. enable = false;
 | 
					 | 
				
			||||||
      };
 | 
					      };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      vim.presence = {
 | 
					      vim.presence = {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,6 +1,5 @@
 | 
				
			||||||
_: {
 | 
					_: {
 | 
				
			||||||
  imports = [
 | 
					  imports = [
 | 
				
			||||||
    ./comment-nvim
 | 
					    ./comment-nvim
 | 
				
			||||||
    ./kommentary.nix # WARNING: WILL BE REMOVED IN THE NEXT MAJOR RELEASE
 | 
					 | 
				
			||||||
  ];
 | 
					  ];
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,23 +0,0 @@
 | 
				
			||||||
{
 | 
					 | 
				
			||||||
  config,
 | 
					 | 
				
			||||||
  lib,
 | 
					 | 
				
			||||||
  ...
 | 
					 | 
				
			||||||
}:
 | 
					 | 
				
			||||||
with lib;
 | 
					 | 
				
			||||||
with builtins; let
 | 
					 | 
				
			||||||
  cfg = config.vim.comments.kommentary;
 | 
					 | 
				
			||||||
in {
 | 
					 | 
				
			||||||
  options.vim.comments.kommentary = {
 | 
					 | 
				
			||||||
    enable = mkEnableOption "Enable kommentary";
 | 
					 | 
				
			||||||
  };
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  config = mkIf cfg.enable {
 | 
					 | 
				
			||||||
    vim.startPlugins = [
 | 
					 | 
				
			||||||
      "kommentary"
 | 
					 | 
				
			||||||
    ];
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    vim.luaConfigRC.kommentary = nvim.dag.entryAnywhere ''
 | 
					 | 
				
			||||||
      require('kommentary.config').use_extended_mappings()
 | 
					 | 
				
			||||||
    '';
 | 
					 | 
				
			||||||
  };
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue