fixes angularls
This commit is contained in:
		
							parent
							
								
									b202da6a5b
								
							
						
					
					
						commit
						6280726456
					
				
							
								
								
									
										15
									
								
								init.lua
								
								
								
								
							
							
						
						
									
										15
									
								
								init.lua
								
								
								
								
							|  | @ -542,7 +542,7 @@ require('lazy').setup({ | ||||||
|           -- This may be unwanted, since they displace some of your code |           -- This may be unwanted, since they displace some of your code | ||||||
|           if client and client.server_capabilities.inlayHintProvider and vim.lsp.inlay_hint then |           if client and client.server_capabilities.inlayHintProvider and vim.lsp.inlay_hint then | ||||||
|             map('<leader>th', function() |             map('<leader>th', function() | ||||||
|               vim.lsp.inlay_hint.enable(not vim.lsp.inlay_hint.is_enabled()) |               vim.lsp.inlay_hint.enable(not vim.lsp.inlay_hint.is_enabled) | ||||||
|             end, '[T]oggle Inlay [H]ints') |             end, '[T]oggle Inlay [H]ints') | ||||||
|           end |           end | ||||||
|         end, |         end, | ||||||
|  | @ -577,12 +577,13 @@ require('lazy').setup({ | ||||||
|         -- But for many setups, the LSP (`tsserver`) will work just fine |         -- But for many setups, the LSP (`tsserver`) will work just fine | ||||||
|         tsserver = {}, |         tsserver = {}, | ||||||
|         angularls = { |         angularls = { | ||||||
|           config = { |           cwd = require('lspconfig.util').root_pattern('angular.json', 'project.json'), | ||||||
|             cwd = function() |           require_cwd = true, | ||||||
|               return require('lspconfig.util').root_pattern('angular.json', 'project.json') |           on_new_config = function(new_config, new_root_dir) | ||||||
|             end, |             new_config.root_dir = new_root_dir | ||||||
|             require_cwd = true, |           end, | ||||||
|           }, |           filetypes = { 'typescript', 'html' }, | ||||||
|  |           root_dir = require('lspconfig.util').root_pattern('angular.json', 'project.json'), | ||||||
|         }, |         }, | ||||||
|         -- css_variables = {}, |         -- css_variables = {}, | ||||||
|         cssls = {}, |         cssls = {}, | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue