(chore): Removed old ls
This commit is contained in:
		
							parent
							
								
									a05f265ae4
								
							
						
					
					
						commit
						2d07b1c42c
					
				
					 1 changed files with 21 additions and 22 deletions
				
			
		|  | @ -1,45 +1,44 @@ | |||
| -- import mason plugin safely | ||||
| local mason_status, mason = pcall(require, "mason") | ||||
| if not mason_status then | ||||
|   return | ||||
| 	return | ||||
| end | ||||
| 
 | ||||
| -- import mason-lspconfig plugin safely | ||||
| local mason_lspconfig_status, mason_lspconfig = pcall(require, "mason-lspconfig") | ||||
| if not mason_lspconfig_status then | ||||
|   return | ||||
| 	return | ||||
| end | ||||
| 
 | ||||
| -- import mason-null-ls plugin safely | ||||
| local mason_null_ls_status, mason_null_ls = pcall(require, "mason-null-ls") | ||||
| if not mason_null_ls_status then | ||||
|   return | ||||
| 	return | ||||
| end | ||||
| 
 | ||||
| -- enable mason | ||||
| mason.setup() | ||||
| 
 | ||||
| mason_lspconfig.setup({ | ||||
|   -- list of servers for mason to install | ||||
|   ensure_installed = { | ||||
|     "tsserver", | ||||
|     "html", | ||||
|     "cssls", | ||||
|     "tailwindcss", | ||||
|     "sumneko_lua", | ||||
|     "emmet_ls", | ||||
|   }, | ||||
|   -- auto-install configured servers (with lspconfig) | ||||
|   automatic_installation = true, -- not the same as ensure_installed | ||||
| 	-- list of servers for mason to install | ||||
| 	ensure_installed = { | ||||
| 		"tsserver", | ||||
| 		"html", | ||||
| 		"cssls", | ||||
| 		"tailwindcss", | ||||
| 		"emmet_ls", | ||||
| 	}, | ||||
| 	-- auto-install configured servers (with lspconfig) | ||||
| 	automatic_installation = true, -- not the same as ensure_installed | ||||
| }) | ||||
| 
 | ||||
| mason_null_ls.setup({ | ||||
|   -- list of formatters & linters for mason to install | ||||
|   ensure_installed = { | ||||
|     "prettier", -- ts/js formatter | ||||
|     "stylua", -- lua formatter | ||||
|     "eslint_d", -- ts/js linter | ||||
|   }, | ||||
|   -- auto-install configured formatters & linters (with null-ls) | ||||
|   automatic_installation = true, | ||||
| 	-- list of formatters & linters for mason to install | ||||
| 	ensure_installed = { | ||||
| 		"prettier", -- ts/js formatter | ||||
| 		"stylua", -- lua formatter | ||||
| 		"eslint_d", -- ts/js linter | ||||
| 	}, | ||||
| 	-- auto-install configured formatters & linters (with null-ls) | ||||
| 	automatic_installation = true, | ||||
| }) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Blake Ridgway
						Blake Ridgway