add lsp signs in gutter
This commit is contained in:
		
							parent
							
								
									3f1c32e7e1
								
							
						
					
					
						commit
						0556e7d2c0
					
				|  | @ -313,6 +313,11 @@ in | |||
| 
 | ||||
|       " lua config  | ||||
|       lua <<EOF | ||||
|       local signs = { Error = " ", Warn = " ", Hint = " ", Info = " " } | ||||
|       for type, icon in pairs(signs) do | ||||
|         local hl = "DiagnosticSign" .. type | ||||
|         vim.fn.sign_define(hl, { text = icon, texthl = hl, numhl = hl }) | ||||
|       end | ||||
|       vim.g.diagnostics_active = true | ||||
|       function _G.toggle_diagnostics() | ||||
|         if vim.g.diagnostics_active then | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue