mirror of
				https://github.com/NotAShelf/nvf.git
				synced 2025-10-31 11:02:37 +00:00 
			
		
		
		
	treewide: begin restructuring the module tree
This commit is contained in:
		
					parent
					
						
							
								e1835f6c46
							
						
					
				
			
			
				commit
				
					
						7c730a78e5
					
				
			
		
					 254 changed files with 749 additions and 664 deletions
				
			
		
							
								
								
									
										29
									
								
								modules/plugins/lsp/lsp-signature/config.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										29
									
								
								modules/plugins/lsp/lsp-signature/config.nix
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,29 @@ | |||
| { | ||||
|   config, | ||||
|   lib, | ||||
|   ... | ||||
| }: let | ||||
|   inherit (lib.modules) mkIf; | ||||
|   inherit (lib.nvim.dag) entryAnywhere; | ||||
|   inherit (lib.nvim.lua) toLuaObject; | ||||
| 
 | ||||
|   cfg = config.vim.lsp; | ||||
| in { | ||||
|   config = mkIf (cfg.enable && cfg.lspSignature.enable) { | ||||
|     vim = { | ||||
|       startPlugins = [ | ||||
|         "lsp-signature" | ||||
|       ]; | ||||
| 
 | ||||
|       lsp.lspSignature.setupOpts = { | ||||
|         bind = config.vim.ui.borders.plugins.lsp-signature.enable; | ||||
|         handler_opts.border = config.vim.ui.borders.plugins.lsp-signature.style; | ||||
|       }; | ||||
| 
 | ||||
|       luaConfigRC.lsp-signature = entryAnywhere '' | ||||
|         -- Enable lsp signature viewer | ||||
|         require("lsp_signature").setup(${toLuaObject cfg.lspSignature.setupOpts}) | ||||
|       ''; | ||||
|     }; | ||||
|   }; | ||||
| } | ||||
							
								
								
									
										6
									
								
								modules/plugins/lsp/lsp-signature/default.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								modules/plugins/lsp/lsp-signature/default.nix
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,6 @@ | |||
| { | ||||
|   imports = [ | ||||
|     ./lsp-signature.nix | ||||
|     ./config.nix | ||||
|   ]; | ||||
| } | ||||
							
								
								
									
										10
									
								
								modules/plugins/lsp/lsp-signature/lsp-signature.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								modules/plugins/lsp/lsp-signature/lsp-signature.nix
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,10 @@ | |||
| {lib, ...}: let | ||||
|   inherit (lib.options) mkEnableOption; | ||||
| in { | ||||
|   options.vim.lsp = { | ||||
|     lspSignature = { | ||||
|       enable = mkEnableOption "lsp signature viewer"; | ||||
|       setupOpts = lib.nvim.types.mkPluginSetupOption "lsp-signature" {}; | ||||
|     }; | ||||
|   }; | ||||
| } | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue