File tree Expand file tree Collapse file tree 5 files changed +22
-23
lines changed Expand file tree Collapse file tree 5 files changed +22
-23
lines changed Original file line number Diff line number Diff line change @@ -55,13 +55,7 @@ settings["server_formatting_block_list"] = {
5555--- @type  boolean 
5656settings [" lsp_inlayhints" =  false 
5757
58- --  Set it to false if diagnostics virtual text is annoying.
59- --  If disabled, you may browse lsp diagnostics using trouble.nvim (press `gt` to toggle it).
60- --- @type  boolean 
61- settings [" diagnostics_virtual_text" =  true 
62- 
6358--  Set it to false if diagnostics virtual lines is annoying.
64- --  NOTE: This entry is an alternative form to `diagnostics_virtual_text`.
6559--- @type  boolean 
6660settings [" diagnostics_virtual_lines" =  false 
6761
Original file line number Diff line number Diff line change @@ -56,17 +56,6 @@ _G._toggle_inlayhint = function()
5656end 
5757
5858_G ._toggle_virtualtext  =  function ()
59- 	local  _vt_enabled  =  require (" core.settings" diagnostics_virtual_text 
60- 	if  _vt_enabled  then 
61- 		local  vt_config  =  not  vim .diagnostic .config ().virtual_text 
62- 		vim .diagnostic .config ({ virtual_text  =  vt_config  })
63- 		vim .notify (
64- 			(vt_config  and  " Virtual text is now displayed"  or  " Virtual text is now hidden" 
65- 			vim .log .levels .INFO ,
66- 			{ title  =  " LSP Diagnostic"  
67- 		)
68- 	end 
69- 
7059	local  _vl_enabled  =  require (" core.settings" diagnostics_virtual_lines 
7160	if  _vl_enabled  then 
7261		local  vl_config  =  not  vim .diagnostic .config ().virtual_lines 
Original file line number Diff line number Diff line change 11local  M  =  {}
22
33M .setup  =  function ()
4- 	local  diagnostics_virtual_text  =  require (" core.settings" diagnostics_virtual_text 
54	local  diagnostics_virtual_lines  =  require (" core.settings" diagnostics_virtual_lines 
65	local  diagnostics_level  =  require (" core.settings" diagnostics_level 
76
@@ -16,11 +15,7 @@ M.setup = function()
1615	vim .diagnostic .config ({
1716		signs  =  true ,
1817		underline  =  true ,
19- 		virtual_text  =  diagnostics_virtual_text  and  {
20- 			severity  =  {
21- 				min  =  vim .diagnostic .severity [diagnostics_level ],
22- 			},
23- 		} or  false ,
18+ 		virtual_text  =  false ,
2419		virtual_lines  =  diagnostics_virtual_lines  and  {
2520			severity  =  {
2621				min  =  vim .diagnostic .severity [diagnostics_level ],
Original file line number Diff line number Diff line change 1+ return  function ()
2+ 	require (" modules.utils" load_plugin (" tiny-inline-diagnostic" 
3+ 		preset  =  " modern" 
4+ 		options  =  {
5+ 			show_source  =  {
6+ 				enabled  =  true ,
7+ 				if_many  =  true ,
8+ 			},
9+ 			use_icons_from_diagnostic  =  true ,
10+ 			break_line  =  {
11+ 				enabled  =  true ,
12+ 			},
13+ 		},
14+ 	})
15+ end 
Original file line number Diff line number Diff line change @@ -35,6 +35,12 @@ completion["nvimtools/none-ls.nvim"] = {
3535		" jay-babu/mason-null-ls.nvim" 
3636	},
3737}
38+ completion [" rachartier/tiny-inline-diagnostic.nvim" =  {
39+ 	lazy  =  true ,
40+ 	event  =  " VeryLazy" 
41+ 	priority  =  1000 , --  needs to be loaded in first
42+ 	config  =  require (" completion.tiny-inline-diagnostic" 
43+ }
3844
3945completion [" Saghen/blink.cmp" =  {
4046	lazy  =  true ,
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments