From 95bce4610af5ccc7cee4d68633ce6b7af5fe342b Mon Sep 17 00:00:00 2001 From: louie Date: Wed, 22 Jun 2022 20:12:42 -0700 Subject: First commit --- lua/user/options.lua | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 lua/user/options.lua (limited to 'lua/user/options.lua') diff --git a/lua/user/options.lua b/lua/user/options.lua new file mode 100644 index 0000000..338d207 --- /dev/null +++ b/lua/user/options.lua @@ -0,0 +1,29 @@ +-- Syntax Highlighting Settings +vim.syntax = true --turn on syntax highlighting +vim.cmd("colorscheme slate") --set colorscheme to slate + +-- Misc. Settings +vim.opt.hlsearch = true --highlight search matches +vim.opt.number = true --number rows +vim.opt.shiftwidth = 4 --set shiftwidth +vim.opt.smartindent = true --auto-indent +vim.opt.tabstop = 4 --set tab length + +-- Fold Settings +vim.opt.foldmethod = "indent" --enable fold detection +vim.opt.foldlevelstart = 20 --set initial fold + +-- Color Settings [TODO] +--highlight Pmenu ctermbg=White ctermfg=Black guibg=Gray + +-- Additional Settings from Video Series +-- :help options +-- Autocomplete Settings +vim.opt.completeopt = { "menuone", "noselect" } -- show menu even if only one entry; do not auto-select from menu +vim.opt.signcolumn = "yes" -- always show the sign column, otherwise it would shift the text each time +vim.opt.shortmess:append "c" -- for autocompletion, don't give standard messages +-- Misc. Settings +vim.opt.conceallevel = 0 -- do not conceal text +vim.opt.fileencoding = "utf-8" -- the encoding written to a file +--vim.opt.pumheight = 10 -- pop up menu height +--vim.opt.termguicolors = true -- set term gui colors (most terminals support this) -- cgit