mirror of
				https://github.com/wlcx/home.git
				synced 2025-10-30 21:13:44 +00:00 
			
		
		
		
	vim: disable completions in comments
also fancy borders
This commit is contained in:
		
							parent
							
								
									74b11aead4
								
							
						
					
					
						commit
						91c2171da3
					
				| @ -12,9 +12,17 @@ end | ||||
| -- Completion | ||||
| local cmp = require'cmp' | ||||
| cmp.setup({ | ||||
|   -- Disable completions if we're in a comment | ||||
|   enabled = function() | ||||
|     if require"cmp.config.context".in_treesitter_capture("comment")==true or require"cmp.config.context".in_syntax_group("Comment") then | ||||
|       return false | ||||
|     else | ||||
|       return true | ||||
|     end | ||||
|   end, | ||||
|   window = { | ||||
|     -- completion = cmp.config.window.bordered(), | ||||
|     -- documentation = cmp.config.window.bordered(), | ||||
|     completion = cmp.config.window.bordered(), | ||||
|     documentation = cmp.config.window.bordered(), | ||||
|   }, | ||||
|   mapping = cmp.mapping.preset.insert({ | ||||
|     ['<C-Space>'] = cmp.mapping.complete(), | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user