mirror of
				https://github.com/NotAShelf/nvf.git
				synced 2025-10-31 02:52:37 +00:00 
			
		
		
		
	modules/nvim-cmp: add edge case for autopairs in cr mapping
This commit is contained in:
		
					parent
					
						
							
								335fbea0c0
							
						
					
				
			
			
				commit
				
					
						c2c85d70ee
					
				
			
		
					 2 changed files with 13 additions and 10 deletions
				
			
		|  | @ -4,7 +4,6 @@ | |||
|   ... | ||||
| }: let | ||||
|   inherit (lib.modules) mkIf; | ||||
|   inherit (lib.strings) optionalString; | ||||
|   inherit (lib.nvim.dag) entryAnywhere; | ||||
|   inherit (lib.nvim.lua) toLuaObject; | ||||
| 
 | ||||
|  | @ -14,7 +13,7 @@ in { | |||
|     vim.startPlugins = ["nvim-autopairs"]; | ||||
| 
 | ||||
|     vim.luaConfigRC.autopairs = entryAnywhere '' | ||||
|       require("nvim-autopairs").setup{} | ||||
|       require("nvim-autopairs").setup({ map_cr = ${toLuaObject (!config.vim.autocomplete.enable)} }) | ||||
|     ''; | ||||
|   }; | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 diniamo
				diniamo