mirror of
				https://github.com/folke/lazy.nvim.git
				synced 2025-10-31 06:21:14 +00:00 
			
		
		
		
	feat(util): use treesitter to highlight notify messages when available
This commit is contained in:
		
					parent
					
						
							
								e183601763
							
						
					
				
			
			
				commit
				
					
						d1739cb7e1
					
				
			
		
					 1 changed files with 3 additions and 1 deletions
				
			
		|  | @ -210,7 +210,9 @@ function M.notify(msg, level) | |||
|       vim.wo[win].concealcursor = "" | ||||
|       vim.wo[win].spell = false | ||||
|       local buf = vim.api.nvim_win_get_buf(win) | ||||
|       vim.bo[buf].filetype = "markdown" | ||||
|       if not pcall(vim.treesitter.start, buf, "markdown") then | ||||
|         vim.bo[buf].filetype = "markdown" | ||||
|       end | ||||
|     end, | ||||
|     title = "lazy.nvim", | ||||
|   }) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue