Skip to content

Commit 56aed91

Browse files
committed
added html settings
1 parent b1416a3 commit 56aed91

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

Diff for: ftdetect/html.lua

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
vim.api.nvim_create_autocmd("BufWinEnter", {
22
pattern = "*.html",
3-
command = "set syntax=html",
3+
command = "setlocal syntax=html tabstop=2 shiftwidth=2 softtabstop=2",
4+
})
5+
6+
vim.api.nvim_create_autocmd("BufNew", {
7+
pattern = "*.html",
8+
command = "silent! 1s:.*:<!doctype html>",
49
})

Diff for: lua/plugins/nvim-cmp.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,10 @@ M.config = function()
6565
{ name = "nvim_lua" },
6666
{ name = "luasnip" }, -- For luasnip users.
6767
{ name = "codeium" },
68-
{ name = "dictionary", keyword_length = 2 },
6968
}, {
7069
{ name = "buffer" },
7170
{ name = "path" },
71+
{ name = "dictionary", keyword_length = 2 },
7272
}, {
7373
{ name = "neorg" },
7474
}),

0 commit comments

Comments
 (0)