This commit is contained in:
siduck76 2021-06-26 08:06:26 +05:30
parent 40a63f67c8
commit 7758c086e2
1 changed files with 19 additions and 30 deletions

View File

@ -1,41 +1,30 @@
local scopes = {o = vim.o, b = vim.bo, w = vim.wo} local opt = vim.opt
local function opt(scope, key, value) opt.ruler = false
scopes[scope][key] = value opt.showmode = false
if scope ~= "o" then opt.hidden = true
scopes["o"][key] = value opt.ignorecase = true
end opt.splitbelow = true
end opt.splitright = true
opt.termguicolors = true
opt("o", "ruler", false) opt.cul = true
opt("o", "showmode", false) opt.mouse = "a"
opt("o", "hidden", true) opt.signcolumn = "yes"
opt("o", "ignorecase", true) opt.cmdheight = 1
opt("o", "splitbelow", true) opt.updatetime = 250 -- update interval for gitsigns
opt("o", "splitright", true) opt.clipboard = "unnamedplus"
opt("o", "termguicolors", true)
opt("w", "cul", true)
opt("o", "mouse", "a")
opt("w", "signcolumn", "yes")
opt("o", "cmdheight", 1)
opt("o", "updatetime", 250) -- update interval for gitsigns
opt("o", "clipboard", "unnamedplus")
-- Numbers -- Numbers
opt("w", "number", true) opt.number = true
opt("o", "numberwidth", 2) opt.numberwidth = 2
-- opt("w", "relativenumber", true) -- opt("w", "relativenumber", true)
-- for indenline -- for indenline
opt("b", "expandtab", true) opt.expandtab = true
opt("b", "shiftwidth", 2) opt.shiftwidth = 2
opt("b", "smartindent", true) opt.smartindent = true
-- disable builtin vim plugins -- disable builtin vim plugins
vim.g.loaded_gzip = 0 vim.g.loaded_gzip = 0
vim.g.loaded_tar = 0 vim.g.loaded_tar = 0
vim.g.loaded_tarPlugin = 0 vim.g.loaded_tarPlugin = 0