From 42d917218f52a9fc4524fc46583d6762651ae839 Mon Sep 17 00:00:00 2001 From: Thomas Schmucker Date: Sat, 4 Jul 2026 16:09:12 +0200 Subject: Neovim: Formateinstellungen für HTML MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nvim/ftplugin/html.lua | 8 ++++++++ nvim/lua/plugins/format.lua | 1 + 2 files changed, 9 insertions(+) create mode 100644 nvim/ftplugin/html.lua diff --git a/nvim/ftplugin/html.lua b/nvim/ftplugin/html.lua new file mode 100644 index 0000000..009e21d --- /dev/null +++ b/nvim/ftplugin/html.lua @@ -0,0 +1,8 @@ +local opt = vim.opt_local + +opt.tabstop = 2 +opt.softtabstop = 2 +opt.shiftwidth = 2 +opt.expandtab = true +opt.autoindent = true +opt.foldenable = true diff --git a/nvim/lua/plugins/format.lua b/nvim/lua/plugins/format.lua index d6942a8..f79f577 100644 --- a/nvim/lua/plugins/format.lua +++ b/nvim/lua/plugins/format.lua @@ -16,6 +16,7 @@ return { bash = { "shfmt" }, c = {}, -- clangd cpp = {}, -- clangd + html = { "prettier" }, -- npm install -g prettier javascript = { "prettier" }, json = { "jq" }, -- brew install jq, pkg install jq lua = { "stylua" }, -- brew install stylua, pkg install stylua -- cgit v1.3