commit a91616caa11b0156b69488f5bf0c86b2d028c6aa
parent d4bfe3f8487e469d57cd0ecb1e4d61b7a90bfb73
Author: bdmfegys@duck.com <bdmfegys@duck.com>
Date: Tue, 30 Apr 2024 17:09:42 -0400
options.lua: add helpful comments and indentation options
Diffstat:
1 file changed, 13 insertions(+), 0 deletions(-)
diff --git a/lua/options.lua b/lua/options.lua
@@ -1,11 +1,24 @@
-- leaders
vim.g.mapleader = " "
vim.g.maplocalleader = "\\"
+
local opt = vim.opt
vim.g.autoformat = false
+
+-- indentation & tabs
+opt.tabstop = 2 -- space count for tabs
+opt.shiftwidth = 2 -- indent width
+opt.expandtab = true -- tabs are spaces
+opt.autoindent = true -- copy indent from current line to next line
+
+-- numbering
opt.number = true
opt.relativenumber = false
+
+-- text wrapping
opt.wrap = true
+
+-- option for themes, requires truecolor terminal
opt.termguicolors = true
local has_words_before = function()