html lsp
This commit is contained in:
parent
61292478ba
commit
31bff1d28f
|
@ -53,7 +53,7 @@ require('mason-lspconfig').setup_handlers {
|
|||
capabilities = capabilities
|
||||
}
|
||||
end,
|
||||
['rust_analyzer'] = function()
|
||||
['rust_analyzer'] = function()
|
||||
local rustToolsOpts = {
|
||||
tools = {
|
||||
inlay_hints = {
|
||||
|
@ -68,7 +68,7 @@ require('mason-lspconfig').setup_handlers {
|
|||
capabilities = capabilities,
|
||||
flags = lsp_flags,
|
||||
settings = {
|
||||
["rust_analyzer"] = {
|
||||
["rust_analyzer"] = {
|
||||
checkOnSave = {
|
||||
command = "clippy"
|
||||
}
|
||||
|
@ -84,11 +84,27 @@ require('mason-lspconfig').setup_handlers {
|
|||
flags = lsp_flags,
|
||||
-- server-specific settings...
|
||||
settings = {
|
||||
["rust-analyzer"] = {}
|
||||
["rust-analyzer"] = {}
|
||||
}
|
||||
}
|
||||
end,
|
||||
['yamlls'] = function()
|
||||
['html'] = function()
|
||||
require('lspconfig')['html'].setup {
|
||||
on_attach = on_attach,
|
||||
flags = lsp_flags,
|
||||
cmd = { "html-languageserver", "--stdio" },
|
||||
filetypes = { "html" },
|
||||
init_options = {
|
||||
configurationSection = { "html", "css", "javascript" },
|
||||
embeddedLanguages = {
|
||||
css = true,
|
||||
javascript = true
|
||||
}
|
||||
},
|
||||
settings = {}
|
||||
}
|
||||
end,
|
||||
['yamlls'] = function()
|
||||
require('lspconfig')["yamlls"].setup {
|
||||
on_attach = on_attach,
|
||||
flags = lsp_flags,
|
||||
|
|
Loading…
Reference in New Issue