mirror of
				https://github.com/NotAShelf/nvf.git
				synced 2025-10-31 02:52:37 +00:00 
			
		
		
		
	languages/rust: fix unused lsp settings option (#641)
Co-authored-by: raf <me@notashelf.dev>
This commit is contained in:
		
					parent
					
						
							
								c8fd6204d0
							
						
					
				
			
			
				commit
				
					
						9f276a0c5f
					
				
			
		
					 1 changed files with 12 additions and 0 deletions
				
			
		|  | @ -62,6 +62,15 @@ in { | |||
|         description = "Options to pass to rust analyzer"; | ||||
|         type = str; | ||||
|         default = ""; | ||||
|         example = '' | ||||
|           ['rust-analyzer'] = { | ||||
|             cargo = {allFeature = true}, | ||||
|             checkOnSave = true, | ||||
|             procMacro = { | ||||
|               enable = true, | ||||
|             }, | ||||
|           }, | ||||
|         ''; | ||||
|       }; | ||||
|     }; | ||||
| 
 | ||||
|  | @ -141,6 +150,9 @@ in { | |||
|               if isList cfg.lsp.package | ||||
|               then expToLua cfg.lsp.package | ||||
|               else ''{"${cfg.lsp.package}/bin/rust-analyzer"}'' | ||||
|             }, | ||||
|               default_settings = { | ||||
|                 ${cfg.lsp.opts} | ||||
|               }, | ||||
|               on_attach = function(client, bufnr) | ||||
|                 default_on_attach(client, bufnr) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Ching Pei Yang
				Ching Pei Yang