Skip to content

Commit

Permalink
html autocomand changed indent to 2 spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
nicvagn committed Sep 2, 2024
1 parent 56aed91 commit 179c312
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ftdetect/html.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ vim.api.nvim_create_autocmd("BufWinEnter", {
command = "setlocal syntax=html tabstop=2 shiftwidth=2 softtabstop=2",
})

vim.api.nvim_create_autocmd("BufNew", {
vim.api.nvim_create_autocmd("BufNewFile", {
pattern = "*.html",
command = "silent! 1s:.*:<!doctype html>",
})

0 comments on commit 179c312

Please sign in to comment.