diff --git a/lua/truss/set.lua b/lua/truss/set.lua index 0e68f13..9b2b2c2 100644 --- a/lua/truss/set.lua +++ b/lua/truss/set.lua @@ -1,10 +1,16 @@ -vim.opt.guicursor = "" +-- VIM Options -vim.opt.nu = true -vim.opt.relativenumber = true +-- Cursor +vim.opt.guicursor = "" -- Use Default Cursor +vim.opt.termguicolors = true -- Enable 24 bit true color in supported terminals -vim.opt.list = true -vim.opt.listchars = { +-- Line Numbering +vim.opt.nu = true -- Show absolute number for current line +vim.opt.relativenumber = true -- Relative number on other lines + +-- Whitespace Display +vim.opt.list = true -- Show whitespace characters +vim.opt.listchars = { -- Characters to use for whitespace space = 'ยท', tab = '>-', eol = '$', @@ -13,29 +19,31 @@ vim.opt.listchars = { precedes = '<' } -vim.opt.tabstop = 4 -vim.opt.softtabstop = 4 -vim.opt.shiftwidth = 4 -vim.opt.expandtab = true - +-- Indentation / Tabs +vim.opt.tabstop = 4 -- Visual width of a tab +vim.opt.softtabstop = 4 -- Insert mode tab size +vim.opt.shiftwidth = 4 -- Shift / autoindent size +vim.opt.expandtab = true -- Tabs to spaces vim.opt.smartindent = true -vim.opt.wrap = false +-- Wrapping +vim.opt.wrap = false -- Disable line wrapping -vim.opt.swapfile = false -vim.opt.backup = false -vim.opt.undodir = os.getenv("HOME") .. "/.vim/undodir" -vim.opt.undofile = true +-- Backup/Undo +vim.opt.swapfile = false -- No buffer swap files +vim.opt.backup = false -- No backups when saving +vim.opt.undofile = true -- Persistent undo history +vim.opt.undodir = os.getenv("HOME") .. "/.vim/undodir" -- Persistent undo save location -vim.opt.hlsearch = false -vim.opt.incsearch = true +-- Search Behavior +vim.opt.hlsearch = true -- Highlight all search matches +vim.opt.incsearch = true -- Highlight matches as its being typed -vim.opt.termguicolors = true - -vim.opt.scrolloff = 8 +-- UI Layout +vim.opt.scrolloff = 8 -- Context to keep visible while scrolling vim.opt.signcolumn = "yes" vim.opt.isfname:append("@-@") -vim.opt.updatetime = 50 - -vim.opt.colorcolumn = "80" +-- Misc +vim.opt.updatetime = 50 -- Update time after typing +vim.opt.colorcolumn = "80" -- Display a column at this position