feat: Update nvchad configuration
This commit is contained in:
parent
9c6ad33e41
commit
fe9f9d614a
3 changed files with 110 additions and 111 deletions
|
|
@ -1,102 +1,99 @@
|
|||
require "nvchad.options"
|
||||
|
||||
local o = vim.o
|
||||
local opt = vim.opt
|
||||
|
||||
o.autoindent = true
|
||||
o.autoread = true
|
||||
opt.backspace = {
|
||||
"indent",
|
||||
"eol",
|
||||
"start",
|
||||
local options = {
|
||||
autoindent = true,
|
||||
autoread = true,
|
||||
backspace = {
|
||||
"indent",
|
||||
"eol",
|
||||
"start",
|
||||
},
|
||||
backup = false,
|
||||
breakindent = true,
|
||||
breakindentopt = { "sbr" },
|
||||
showbreak = "↪",
|
||||
cdhome = true,
|
||||
cmdheight = 1,
|
||||
completeopt = {
|
||||
"fuzzy",
|
||||
"menuone",
|
||||
"noselect",
|
||||
"popup",
|
||||
},
|
||||
concealcursor = { ["v"] = true },
|
||||
confirm = true,
|
||||
cursorline = true,
|
||||
cursorlineopt = { "number", "screenline" },
|
||||
diffopt = {
|
||||
"algorithm:minimal",
|
||||
"closeoff",
|
||||
"context:20",
|
||||
"followwrap",
|
||||
"internal",
|
||||
"linematch:40",
|
||||
},
|
||||
errorbells = true,
|
||||
expandtab = true,
|
||||
exrc = true,
|
||||
foldcolumn = "auto",
|
||||
fsync = true,
|
||||
gdefault = false,
|
||||
helplang = {
|
||||
"zh",
|
||||
"en",
|
||||
},
|
||||
history = 10000,
|
||||
hlsearch = true,
|
||||
ignorecase = true,
|
||||
smartcase = true,
|
||||
inccommand = "split",
|
||||
list = true,
|
||||
listchars = {
|
||||
tab = "--→",
|
||||
trail = "·",
|
||||
multispace = " ",
|
||||
nbsp = "⍽",
|
||||
space = "·",
|
||||
},
|
||||
magic = true,
|
||||
more = true,
|
||||
mouse = "a",
|
||||
number = true,
|
||||
numberwidth = 4,
|
||||
relativenumber = true,
|
||||
scrollback = 100000,
|
||||
scrolloff = 5,
|
||||
shiftround = true,
|
||||
shiftwidth = 2,
|
||||
showmode = false,
|
||||
signcolumn = "yes",
|
||||
smoothscroll = true,
|
||||
splitbelow = true,
|
||||
splitright = true,
|
||||
startofline = true,
|
||||
swapfile = false,
|
||||
tabclose = {
|
||||
"uselast",
|
||||
},
|
||||
tabstop = 2,
|
||||
termguicolors = true,
|
||||
undofile = true,
|
||||
undolevels = 100000,
|
||||
virtualedit = {
|
||||
"block",
|
||||
"onemore",
|
||||
},
|
||||
whichwrap = { b = true, s = true, ["<"] = true, [">"] = true },
|
||||
wildmenu = true,
|
||||
wildmode = { "full" },
|
||||
wildoptions = {
|
||||
"fuzzy",
|
||||
"pum",
|
||||
},
|
||||
winborder = "solid",
|
||||
wrap = true
|
||||
}
|
||||
o.backup = false
|
||||
|
||||
opt.breakindent = true
|
||||
opt.breakindentopt = { "sbr" }
|
||||
o.showbreak = "↪"
|
||||
|
||||
o.cdhome = true
|
||||
o.cmdheight = 1
|
||||
opt.completeopt = {
|
||||
"fuzzy",
|
||||
"menuone",
|
||||
"noselect",
|
||||
"popup",
|
||||
}
|
||||
opt.concealcursor = { ["v"] = true }
|
||||
o.confirm = true
|
||||
o.cursorline = true
|
||||
opt.cursorlineopt = { "number", "screenline" }
|
||||
opt.diffopt = {
|
||||
"algorithm:minimal",
|
||||
"closeoff",
|
||||
"context:20",
|
||||
"followwrap",
|
||||
"internal",
|
||||
"linematch:40",
|
||||
}
|
||||
o.errorbells = true
|
||||
o.expandtab = true
|
||||
o.exrc = true
|
||||
o.foldcolumn = "auto"
|
||||
o.fsync = true
|
||||
o.gdefault = false
|
||||
opt.helplang = {
|
||||
"zh",
|
||||
"en",
|
||||
}
|
||||
o.history = 10000
|
||||
o.hlsearch = true
|
||||
|
||||
o.ignorecase = true
|
||||
o.smartcase = true
|
||||
|
||||
o.inccommand = "split"
|
||||
o.list = true
|
||||
opt.listchars = {
|
||||
tab = "--→",
|
||||
trail = "·",
|
||||
multispace = " ",
|
||||
nbsp = "⍽",
|
||||
space = "·",
|
||||
}
|
||||
o.magic = true
|
||||
o.more = true
|
||||
o.mouse = "a"
|
||||
|
||||
o.number = true
|
||||
o.numberwidth = 4
|
||||
o.relativenumber = true
|
||||
|
||||
o.scrollback = 100000
|
||||
o.scrolloff = 5
|
||||
o.shiftround = true
|
||||
o.shiftwidth = 2
|
||||
o.showmode = false
|
||||
o.signcolumn = "yes"
|
||||
o.smoothscroll = true
|
||||
o.splitbelow = true
|
||||
o.splitright = true
|
||||
o.startofline = true
|
||||
o.swapfile = false
|
||||
opt.tabclose = {
|
||||
"uselast",
|
||||
}
|
||||
o.tabstop = 2
|
||||
o.termguicolors = true
|
||||
o.undofile = true
|
||||
o.undolevels = 100000
|
||||
opt.virtualedit = {
|
||||
"block",
|
||||
"onemore",
|
||||
}
|
||||
opt.whichwrap = { b = true, s = true, ["<"] = true, [">"] = true }
|
||||
o.wildmenu = true
|
||||
opt.wildmode = { "full" }
|
||||
opt.wildoptions = {
|
||||
"fuzzy",
|
||||
"pum",
|
||||
}
|
||||
o.winborder = "solid"
|
||||
o.wrap = true
|
||||
for key, value in pairs(options) do
|
||||
opt[key] = value
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue