Skip to content

Latest commit

 

History

History
26 lines (22 loc) · 449 Bytes

filetypes.md

File metadata and controls

26 lines (22 loc) · 449 Bytes
sidebar_position
8

File Types

Custom file types can be managed in a $XDG_CONFIG_HOME/nvim/filetype.lua file. When the file exists, LazyVim will source it at startup.

Example

vim.filetype.add({
  extension = {
    tfstate = "json",
    terraformrc = "hcl",
  },
  filename = {
    ["Jenkinsfile"] = "groovy",
    ["terraform.rc"] = "hcl",
  },
  pattern = {
    [".*tfstate.backup"] = "json",
  }
})