aboutsummaryrefslogtreecommitdiff
path: root/nvim
diff options
context:
space:
mode:
authorThomas Schmucker <ts@its1.de>2026-07-04 16:09:12 +0200
committerThomas Schmucker <ts@its1.de>2026-07-04 16:09:12 +0200
commit42d917218f52a9fc4524fc46583d6762651ae839 (patch)
tree2f9f7534fc1f5e29517b66d6842c4e10831077cd /nvim
parent2a21c3504109ca0426e61bab3da12e7d68682bc2 (diff)
downloaddotfiles-42d917218f52a9fc4524fc46583d6762651ae839.tar.gz
dotfiles-42d917218f52a9fc4524fc46583d6762651ae839.tar.bz2
dotfiles-42d917218f52a9fc4524fc46583d6762651ae839.zip
Neovim: Formateinstellungen für HTML
Diffstat (limited to 'nvim')
-rw-r--r--nvim/ftplugin/html.lua8
-rw-r--r--nvim/lua/plugins/format.lua1
2 files changed, 9 insertions, 0 deletions
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 @@
1local opt = vim.opt_local
2
3opt.tabstop = 2
4opt.softtabstop = 2
5opt.shiftwidth = 2
6opt.expandtab = true
7opt.autoindent = true
8opt.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 {
16 bash = { "shfmt" }, 16 bash = { "shfmt" },
17 c = {}, -- clangd 17 c = {}, -- clangd
18 cpp = {}, -- clangd 18 cpp = {}, -- clangd
19 html = { "prettier" }, -- npm install -g prettier
19 javascript = { "prettier" }, 20 javascript = { "prettier" },
20 json = { "jq" }, -- brew install jq, pkg install jq 21 json = { "jq" }, -- brew install jq, pkg install jq
21 lua = { "stylua" }, -- brew install stylua, pkg install stylua 22 lua = { "stylua" }, -- brew install stylua, pkg install stylua