mirror of
				https://github.com/NotAShelf/nvf.git
				synced 2025-11-03 20:22:21 +00:00 
			
		
		
		
	assistant/chatgpt: fix npins name incompat
This commit is contained in:
		
					parent
					
						
							
								fd8e97a2ff
							
						
					
				
			
			
				commit
				
					
						dad18b3226
					
				
			
		
					 1 changed files with 10 additions and 8 deletions
				
			
		| 
						 | 
				
			
			@ -30,17 +30,19 @@
 | 
			
		|||
in {
 | 
			
		||||
  config = mkIf cfg.enable {
 | 
			
		||||
    vim = {
 | 
			
		||||
      startPlugins = [
 | 
			
		||||
        "chatgpt"
 | 
			
		||||
      ];
 | 
			
		||||
      startPlugins = ["chatgpt-nvim"];
 | 
			
		||||
 | 
			
		||||
      pluginRC.chagpt = entryAnywhere ''
 | 
			
		||||
        require("chatgpt").setup(${toLuaObject cfg.setupOpts})
 | 
			
		||||
      '';
 | 
			
		||||
      maps.normal = mkMerge [
 | 
			
		||||
        (mkSetBinding mappings.chatGpt "<cmd>ChatGPT<CR>")
 | 
			
		||||
        maps
 | 
			
		||||
      ];
 | 
			
		||||
      maps.visual = maps;
 | 
			
		||||
 | 
			
		||||
      maps = {
 | 
			
		||||
        visual = maps;
 | 
			
		||||
        normal = mkMerge [
 | 
			
		||||
          (mkSetBinding mappings.chatGpt "<cmd>ChatGPT<CR>")
 | 
			
		||||
          maps
 | 
			
		||||
        ];
 | 
			
		||||
      };
 | 
			
		||||
    };
 | 
			
		||||
  };
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue