html lsp
This commit is contained in:
		@@ -43,9 +43,10 @@ local lsp_flags = {
 | 
				
			|||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
local capabilities = require('cmp_nvim_lsp').default_capabilities(
 | 
					local capabilities = require('cmp_nvim_lsp').default_capabilities(
 | 
				
			||||||
 | 
					 | 
				
			||||||
  vim.lsp.protocol.make_client_capabilities()
 | 
					  vim.lsp.protocol.make_client_capabilities()
 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
 | 
					capabilities.textDocument.completion.completionItem.snippetSupport = true
 | 
				
			||||||
 | 
					
 | 
				
			||||||
require('mason-lspconfig').setup_handlers {
 | 
					require('mason-lspconfig').setup_handlers {
 | 
				
			||||||
  function(server_name)
 | 
					  function(server_name)
 | 
				
			||||||
    require('lspconfig')[server_name].setup {
 | 
					    require('lspconfig')[server_name].setup {
 | 
				
			||||||
@@ -93,14 +94,15 @@ require('mason-lspconfig').setup_handlers {
 | 
				
			|||||||
    require('lspconfig')['html'].setup {
 | 
					    require('lspconfig')['html'].setup {
 | 
				
			||||||
      on_attach = on_attach,
 | 
					      on_attach = on_attach,
 | 
				
			||||||
      flags = lsp_flags,
 | 
					      flags = lsp_flags,
 | 
				
			||||||
      cmd = { "html-languageserver", "--stdio" },
 | 
					      cmd = { "vscode-html-language-server", "--stdio" },
 | 
				
			||||||
      filetypes = { "html" },
 | 
					      filetypes = { "html" },
 | 
				
			||||||
      init_options = {
 | 
					      init_options = {
 | 
				
			||||||
        configurationSection = { "html", "css", "javascript" },
 | 
					        configurationSection = { "html", "css", "javascript" },
 | 
				
			||||||
        embeddedLanguages = {
 | 
					        embeddedLanguages = {
 | 
				
			||||||
          css = true,
 | 
					          css = true,
 | 
				
			||||||
          javascript = true
 | 
					          javascript = true
 | 
				
			||||||
        }
 | 
					        },
 | 
				
			||||||
 | 
					        provideFormatter = true
 | 
				
			||||||
      },
 | 
					      },
 | 
				
			||||||
      settings = {}
 | 
					      settings = {}
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user