2021-12-08 09:38:24 -06:00
|
|
|
|
-- general settings
|
|
|
|
|
local o = vim.o
|
|
|
|
|
local w = vim.wo
|
|
|
|
|
local b = vim.bo
|
|
|
|
|
|
2022-01-21 10:37:04 -06:00
|
|
|
|
vim.g.mapleader = ' '
|
|
|
|
|
|
2021-12-08 09:38:24 -06:00
|
|
|
|
b.autoindent = true
|
|
|
|
|
b.expandtab = true
|
|
|
|
|
b.softtabstop = 4
|
|
|
|
|
b.shiftwidth = 4
|
|
|
|
|
|
|
|
|
|
b.tabstop = 4
|
|
|
|
|
b.smartindent = true
|
|
|
|
|
b.modeline = false
|
|
|
|
|
b.shiftwidth = 4
|
|
|
|
|
b.tabstop = 4
|
|
|
|
|
b.smartindent = true
|
|
|
|
|
b.modeline = false
|
|
|
|
|
|
|
|
|
|
o.swapfile = false
|
|
|
|
|
o.scrolloff = 5
|
|
|
|
|
o.updatetime = 300
|
|
|
|
|
|
|
|
|
|
w.number = true
|
|
|
|
|
|
|
|
|
|
if vim.fn.has('multi_byte') == 1 and vim.o.encoding == 'utf-8' then
|
|
|
|
|
o.listchars = [[tab:▸ ,extends:❯,precedes:❮,nbsp:±,trail:…]]
|
|
|
|
|
else
|
|
|
|
|
o.listchars = [[tab:> ,extends:>,precedes:<,nbsp:.,trail:_]]
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
o.timeoutlen = 300
|
|
|
|
|
|