mirror of
				https://github.com/NotAShelf/nvf.git
				synced 2025-10-31 19:12:38 +00:00 
			
		
		
		
	languages/astro: fix syntax issue in inline Lua; add prettierd
This commit is contained in:
		
					parent
					
						
							
								a4d59adcf8
							
						
					
				
			
			
				commit
				
					
						b49402bccd
					
				
			
		
					 1 changed files with 8 additions and 4 deletions
				
			
		|  | @ -22,7 +22,7 @@ | |||
|       package = pkgs.astro-language-server; | ||||
|       lspConfig = '' | ||||
|         lspconfig.astro.setup { | ||||
|           capabilities = capabilities; | ||||
|           capabilities = capabilities, | ||||
|           on_attach = attach_keymaps, | ||||
|           cmd = ${ | ||||
|           if isList cfg.lsp.package | ||||
|  | @ -41,6 +41,10 @@ | |||
|       package = pkgs.nodePackages.prettier; | ||||
|     }; | ||||
| 
 | ||||
|     prettierd = { | ||||
|       package = pkgs.prettierd; | ||||
|     }; | ||||
| 
 | ||||
|     biome = { | ||||
|       package = pkgs.biome; | ||||
|     }; | ||||
|  | @ -84,16 +88,16 @@ in { | |||
|       enable = mkEnableOption "Astro LSP support" // {default = config.vim.languages.enableLSP;}; | ||||
| 
 | ||||
|       server = mkOption { | ||||
|         description = "Astro LSP server to use"; | ||||
|         type = enum (attrNames servers); | ||||
|         default = defaultServer; | ||||
|         description = "Astro LSP server to use"; | ||||
|       }; | ||||
| 
 | ||||
|       package = mkOption { | ||||
|         description = "Astro LSP server package, or the command to run as a list of strings"; | ||||
|         example = ''[lib.getExe pkgs.astro-language-server "--minify" "--stdio"]''; | ||||
|         type = either package (listOf str); | ||||
|         default = servers.${cfg.lsp.server}.package; | ||||
|         example = ''[lib.getExe pkgs.astro-language-server "--minify" "--stdio"]''; | ||||
|         description = "Astro LSP server package, or the command to run as a list of strings"; | ||||
|       }; | ||||
|     }; | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue