My personal configuration files and scripts.
1-- Use 2 spaces for indentation.
2local indent_width = 2
3vim.opt.tabstop = indent_width -- indenting with tab
4vim.opt.softtabstop = indent_width
5vim.opt.shiftwidth = indent_width -- indenting with >
6vim.opt.expandtab = true -- use spaces, not tab characters
7
8-- Use 80 characters as the maximum line length.
9local text_width = 80
10vim.opt.textwidth = text_width
11vim.opt.colorcolumn = { text_width + 1 }
12
13-- Yank/paste from/to clipboard.
14vim.opt.clipboard:append({ "unnamedplus" })
15
16-- Align wrapped lines with the indentation for that line.
17vim.opt.breakindent = true