summaryrefslogtreecommitdiff
path: root/lua/user/options.lua
blob: 6538ab327459c702dfefe3eddb815e3a0bc99d20 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
-- Misc. Settings
vim.syntax          = true        --turn on syntax highlighting
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)