all repos

init.lua @ 73ee09dd4365495278b0001b6f2951afd0591b36

my nvim config

init.lua/filetype.lua(view raw)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
if not vim.filetype then
  return
end

vim.filetype.add {
  extension = {
    lock = "yaml",
  },
  filename = {
    [".gitignore"] = "conf",
    [".eslintrc"] = "jsonc",
    [".prettierrc"] = "jsonc",
    [".babelrc"] = "jsonc",
  },
  pattern = {
    [".env.*"] = "sh",
    ["*.Dockerfile.*"] = "dockerfile",
    ["*/templates/**/*.html"] = "htmldjango",
  },
}