46 lines
846 B
Lua
46 lines
846 B
Lua
-- [[ Setting options ]]
|
|
-- See `:help vim.o`
|
|
|
|
-- disable netrw
|
|
vim.g.loaded_netrw = 1
|
|
vim.g.loaded_netrwPlugin = 1
|
|
|
|
-- Set highlight on search
|
|
vim.o.hlsearch = true
|
|
|
|
-- Make line numbers default
|
|
vim.wo.number = true
|
|
|
|
-- Make line numbers relative
|
|
vim.wo.relativenumber = true
|
|
|
|
-- Enable break indent
|
|
vim.o.breakindent = true
|
|
|
|
-- Save undo history
|
|
vim.o.undofile = true
|
|
|
|
-- Case insensitive searching UNLESS /C or capital in search
|
|
vim.o.ignorecase = true
|
|
vim.o.smartcase = true
|
|
|
|
-- Keep signcolumn on by default
|
|
vim.wo.signcolumn = 'yes'
|
|
|
|
-- Decrease update time
|
|
vim.o.updatetime = 250
|
|
vim.o.timeout = true
|
|
vim.o.timeoutlen = 300
|
|
|
|
-- Set completeopt to have a better completion experience
|
|
vim.o.completeopt = 'menuone,noselect'
|
|
|
|
vim.o.termguicolors = true
|
|
|
|
-- eol chars
|
|
vim.opt.list = true
|
|
vim.opt.listchars = {
|
|
eol = '',
|
|
tab = '<->',
|
|
}
|