From 47e71f7f164b5e61971504ff54e116624fbbad60 Mon Sep 17 00:00:00 2001 From: coderkun Date: Mon, 2 Dec 2024 15:23:51 +0100 Subject: [PATCH] nvim: Add settings for HTML luangage server --- nvim/lua/plugins/mason.lua | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/nvim/lua/plugins/mason.lua b/nvim/lua/plugins/mason.lua index e669482..6debd75 100644 --- a/nvim/lua/plugins/mason.lua +++ b/nvim/lua/plugins/mason.lua @@ -25,7 +25,25 @@ return { lspconfig.gradle_ls.setup{} -- HTML - lspconfig.html.setup{} + lspconfig.html.setup{ + settings = { + html = { + format = { + tabSize = 4, + insertSpaces = true, + indentEmptyLines = false, + indentInnerHtml = true, + wrapLineLength = 120, + wrapAttributes = 'preserve', + wrapAttributesIndentSize = 4, + preserveNewLines = true, + maxPreserveNewLines = 1, + indentScripts = "keep", + extraLiners = "", + }, + }, + } + } -- JSON lspconfig.jsonls.setup{}