15 lines
635 B
Lua
15 lines
635 B
Lua
-- Set basic options
|
|
vim.o.number = true -- Show line numbers
|
|
vim.o.relativenumber = true -- Show relative line numbers
|
|
vim.o.expandtab = true -- Convert tabs to spaces
|
|
vim.o.smartindent = true -- Insert indents automatically
|
|
vim.o.tabstop = 4 -- Number of spaces that a tab in the file counts for
|
|
vim.o.shiftwidth = 4 -- Number of spaces to use for each step of (auto)indent
|
|
vim.o.softtabstop = 4 -- Number of spaces that a tab counts for while performing editing operations
|
|
|
|
vim.filetype.add({
|
|
pattern = {
|
|
[".*/etc/nginx/.*/.*%.conf"] = "nginx", -- Make conf files in the nginx folder can be formatted with nginx formatter
|
|
},
|
|
})
|