mirror of
				https://github.com/neovim/neovim.git
				synced 2025-10-26 12:27:24 +00:00 
			
		
		
		
	fix(lsp): respect global syntax setting in open float preview (#15225)
This commit is contained in:
		 Elton Leander Pinto
					Elton Leander Pinto
				
			
				
					committed by
					
						 GitHub
						GitHub
					
				
			
			
				
	
			
			
			 GitHub
						GitHub
					
				
			
						parent
						
							24352cba01
						
					
				
				
					commit
					c6d6b8c7eb
				
			| @@ -1477,7 +1477,7 @@ function M.open_floating_preview(contents, syntax, opts) | ||||
|   }) | ||||
|   opts = opts or {} | ||||
|   opts.wrap = opts.wrap ~= false -- wrapping by default | ||||
|   opts.stylize_markdown = opts.stylize_markdown ~= false | ||||
|   opts.stylize_markdown = opts.stylize_markdown ~= false and vim.g.syntax_on ~= nil | ||||
|   opts.focus = opts.focus ~= false | ||||
|   opts.close_events = opts.close_events or { 'CursorMoved', 'CursorMovedI', 'InsertCharPre' } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user