-- Set basic options vim.o.number = true -- Show line numbers vim.o.relativenumber = true -- Show relative line numbers vim.o.tabstop = 4 -- Number of spaces tabs count for vim.o.shiftwidth = 4 -- Number of spaces to use for each step of (auto)indent vim.o.expandtab = true -- Convert tabs to spaces vim.o.smartindent = true -- Insert indents automatically vim.filetype.add({ pattern = { [".*/etc/nginx/.*/.*%.conf"] = "nginx", -- Make conf files in the nginx folder can be formatted with nginx formatter }, })