mirror of
				https://github.com/NotAShelf/nvf.git
				synced 2025-10-31 11:02:37 +00:00 
			
		
		
		
	feat: apply new module format to lsp plugins
This commit is contained in:
		
					parent
					
						
							
								e09ccfd014
							
						
					
				
			
			
				commit
				
					
						067b523897
					
				
			
		
					 18 changed files with 175 additions and 31 deletions
				
			
		
							
								
								
									
										21
									
								
								modules/lsp/lsp-signature/config.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										21
									
								
								modules/lsp/lsp-signature/config.nix
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,21 @@ | |||
| { | ||||
|   pkgs, | ||||
|   config, | ||||
|   lib, | ||||
|   ... | ||||
| }: | ||||
| with lib; | ||||
| with builtins; let | ||||
|   cfg = config.vim.lsp; | ||||
| in { | ||||
|   config = mkIf (cfg.enable && cfg.lspSignature.enable) { | ||||
|     vim.startPlugins = [ | ||||
|       "lsp-signature" | ||||
|     ]; | ||||
| 
 | ||||
|     vim.luaConfigRC.lsp-signature = nvim.dag.entryAnywhere '' | ||||
|       -- Enable lsp signature viewer | ||||
|       require("lsp_signature").setup() | ||||
|     ''; | ||||
|   }; | ||||
| } | ||||
							
								
								
									
										6
									
								
								modules/lsp/lsp-signature/default.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								modules/lsp/lsp-signature/default.nix
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,6 @@ | |||
| _: { | ||||
|   imports = [ | ||||
|     ./lsp-signature.nix | ||||
|     ./config.nix | ||||
|   ]; | ||||
| } | ||||
							
								
								
									
										16
									
								
								modules/lsp/lsp-signature/lsp-signature.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								modules/lsp/lsp-signature/lsp-signature.nix
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,16 @@ | |||
| { | ||||
|   pkgs, | ||||
|   config, | ||||
|   lib, | ||||
|   ... | ||||
| }: | ||||
| with lib; | ||||
| with builtins; let | ||||
|   cfg = config.vim.lsp; | ||||
| in { | ||||
|   options.vim.lsp = { | ||||
|     lspSignature = { | ||||
|       enable = mkEnableOption "lsp signature viewer"; | ||||
|     }; | ||||
|   }; | ||||
| } | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 NotAShelf
				NotAShelf