Skip to content
This repository was archived by the owner on Apr 16, 2024. It is now read-only.

Commit be85768

Browse files
author
connorgmeean
committed
feat(langs,html): Add html language support
1 parent ab916d1 commit be85768

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

lua/doom/modules/langs/html/init.lua

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
local utils = require("doom.utils")
2+
3+
local html = {}
4+
5+
html.settings = {}
6+
7+
html.autocmds = {
8+
{
9+
"BufWinEnter",
10+
"*.html",
11+
utils.make_run_once_function(function()
12+
print("html")
13+
local langs_utils = require("doom.modules.langs.utils")
14+
langs_utils.use_lsp("html")
15+
16+
vim.defer_fn(function()
17+
local ts_install = require("nvim-treesitter.install")
18+
ts_install.ensure_installed("html", "javascript", "css")
19+
end, 0)
20+
21+
-- Setup null-ls
22+
if doom.features.linter then
23+
local null_ls = require("null-ls")
24+
25+
langs_utils.use_null_ls_source({
26+
null_ls.builtins.formatting.tidy
27+
})
28+
end
29+
end),
30+
once = true,
31+
},
32+
}
33+
34+
return html

0 commit comments

Comments
 (0)