|  | @@ -58,36 +58,10 @@ local join_paths = require("lvim.utils").join_paths
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  return {
 | 
	
		
			
				|  |  |    templates_dir = join_paths(get_runtime_dir(), "site", "after", "ftplugin"),
 | 
	
		
			
				|  |  | -  diagnostics = {
 | 
	
		
			
				|  |  | -    signs = {
 | 
	
		
			
				|  |  | -      active = true,
 | 
	
		
			
				|  |  | -      values = {
 | 
	
		
			
				|  |  | -        { name = "DiagnosticSignError", text = lvim.icons.diagnostics.Error },
 | 
	
		
			
				|  |  | -        { name = "DiagnosticSignWarn", text = lvim.icons.diagnostics.Warning },
 | 
	
		
			
				|  |  | -        { name = "DiagnosticSignHint", text = lvim.icons.diagnostics.Hint },
 | 
	
		
			
				|  |  | -        { name = "DiagnosticSignInfo", text = lvim.icons.diagnostics.Information },
 | 
	
		
			
				|  |  | -      },
 | 
	
		
			
				|  |  | -    },
 | 
	
		
			
				|  |  | -    virtual_text = true,
 | 
	
		
			
				|  |  | -    update_in_insert = false,
 | 
	
		
			
				|  |  | -    underline = true,
 | 
	
		
			
				|  |  | -    severity_sort = true,
 | 
	
		
			
				|  |  | -    float = {
 | 
	
		
			
				|  |  | -      focusable = true,
 | 
	
		
			
				|  |  | -      style = "minimal",
 | 
	
		
			
				|  |  | -      border = "rounded",
 | 
	
		
			
				|  |  | -      source = "always",
 | 
	
		
			
				|  |  | -      header = "",
 | 
	
		
			
				|  |  | -      prefix = "",
 | 
	
		
			
				|  |  | -    },
 | 
	
		
			
				|  |  | -  },
 | 
	
		
			
				|  |  | +  ---@deprecated use vim.diagnostic.config({ ... }) instead
 | 
	
		
			
				|  |  | +  diagnostics = {},
 | 
	
		
			
				|  |  |    document_highlight = false,
 | 
	
		
			
				|  |  |    code_lens_refresh = true,
 | 
	
		
			
				|  |  | -  float = {
 | 
	
		
			
				|  |  | -    focusable = true,
 | 
	
		
			
				|  |  | -    style = "minimal",
 | 
	
		
			
				|  |  | -    border = "rounded",
 | 
	
		
			
				|  |  | -  },
 | 
	
		
			
				|  |  |    on_attach_callback = nil,
 | 
	
		
			
				|  |  |    on_init_callback = nil,
 | 
	
		
			
				|  |  |    automatic_configuration = {
 | 
	
	
		
			
				|  | @@ -106,9 +80,14 @@ return {
 | 
	
		
			
				|  |  |        ["gs"] = { "<cmd>lua vim.lsp.buf.signature_help()<cr>", "show signature help" },
 | 
	
		
			
				|  |  |        ["gl"] = {
 | 
	
		
			
				|  |  |          function()
 | 
	
		
			
				|  |  | -          local config = lvim.lsp.diagnostics.float
 | 
	
		
			
				|  |  | -          config.scope = "line"
 | 
	
		
			
				|  |  | -          vim.diagnostic.open_float(0, config)
 | 
	
		
			
				|  |  | +          local float = vim.diagnostic.config().float
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +          if float then
 | 
	
		
			
				|  |  | +            local config = type(float) == "table" and float or {}
 | 
	
		
			
				|  |  | +            config.scope = "line"
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +            vim.diagnostic.open_float(config)
 | 
	
		
			
				|  |  | +          end
 | 
	
		
			
				|  |  |          end,
 | 
	
		
			
				|  |  |          "Show line diagnostics",
 | 
	
		
			
				|  |  |        },
 |