diff options
| author | Thomas Schmucker <ts@its1.de> | 2026-07-04 16:09:12 +0200 |
|---|---|---|
| committer | Thomas Schmucker <ts@its1.de> | 2026-07-04 16:09:12 +0200 |
| commit | 42d917218f52a9fc4524fc46583d6762651ae839 (patch) | |
| tree | 2f9f7534fc1f5e29517b66d6842c4e10831077cd | |
| parent | 2a21c3504109ca0426e61bab3da12e7d68682bc2 (diff) | |
| download | dotfiles-42d917218f52a9fc4524fc46583d6762651ae839.tar.gz dotfiles-42d917218f52a9fc4524fc46583d6762651ae839.tar.bz2 dotfiles-42d917218f52a9fc4524fc46583d6762651ae839.zip | |
Neovim: Formateinstellungen für HTML
| -rw-r--r-- | nvim/ftplugin/html.lua | 8 | ||||
| -rw-r--r-- | nvim/lua/plugins/format.lua | 1 |
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 @@ | |||
| 1 | local opt = vim.opt_local | ||
| 2 | |||
| 3 | opt.tabstop = 2 | ||
| 4 | opt.softtabstop = 2 | ||
| 5 | opt.shiftwidth = 2 | ||
| 6 | opt.expandtab = true | ||
| 7 | opt.autoindent = true | ||
| 8 | 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 { | |||
| 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 |
