dotfiles/config/nvim/lua/options.lua

46 lines
789 B
Lua
Raw Permalink Normal View History

2024-11-03 04:23:54 -08:00
-- Options File
local opt = vim.opt
2024-11-07 16:07:26 -08:00
-- Leader key
vim.g.mapleader = " "
vim.g.maplocalleader = "\\"
2024-11-03 04:23:54 -08:00
-- Basic Options I like
opt.hlsearch = true
opt.ignorecase = true
opt.relativenumber = true
2024-11-07 16:07:26 -08:00
opt.number = true
2024-11-03 04:23:54 -08:00
opt.spell = true
opt.swapfile = false
opt.syntax = "on"
2024-11-07 16:07:26 -08:00
opt.scrolloff = 15
2024-11-03 04:23:54 -08:00
-- Had this disabled before might not like
opt.incsearch = true
-- 24-bit color
opt.termguicolors = true
-- Good indents
opt.tabstop = 2
2024-11-07 16:07:26 -08:00
opt.shiftwidth = 0 -- Use tabstop
2024-11-03 04:23:54 -08:00
opt.expandtab = true
-- Show trailing whitespace but fancy
opt.list = true
opt.listchars = {
tab = "",
trail = "",
nbsp = "",
}
-- Make Lines Wrap Properly
opt.linebreak = true
opt.wrap = true
-- Colors
vim.cmd("colorscheme tokyonight")
vim.cmd("hi Comment guifg=#e69dc5")
vim.cmd("hi Linenr guifg=#a672f3")