aboutsummaryrefslogtreecommitdiff
path: root/nvim
diff options
context:
space:
mode:
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