feat: Update nvchad configuration
This commit is contained in:
parent
9c6ad33e41
commit
fe9f9d614a
3 changed files with 110 additions and 111 deletions
26
flake.lock
generated
26
flake.lock
generated
|
|
@ -925,11 +925,11 @@
|
||||||
"xwayland-satellite-unstable": "xwayland-satellite-unstable"
|
"xwayland-satellite-unstable": "xwayland-satellite-unstable"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1760950171,
|
"lastModified": 1761623016,
|
||||||
"narHash": "sha256-E2ySTu/oK7cYBdAI3tlGP9zVjF4mZgWJ1OZInBCMb00=",
|
"narHash": "sha256-C2+TErNmeHMCtodwVrMeA/uJg1GRdQbOntRI7DFullA=",
|
||||||
"owner": "sodiboo",
|
"owner": "sodiboo",
|
||||||
"repo": "niri-flake",
|
"repo": "niri-flake",
|
||||||
"rev": "f851a923137c0a54719412146fd63d24b3214e60",
|
"rev": "f0bfe0aaaa51378ace7492850290f8d2db6cc7f3",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
@ -958,11 +958,11 @@
|
||||||
"niri-unstable": {
|
"niri-unstable": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1760940149,
|
"lastModified": 1761460429,
|
||||||
"narHash": "sha256-KbM47vD6E0cx+v4jYQZ8mD5N186AKm2CQlyh34TW58U=",
|
"narHash": "sha256-pJeM23DGMD5AK4gdNaDM1qsIv87NYQJgEh2E8tRd7es=",
|
||||||
"owner": "YaLTeR",
|
"owner": "YaLTeR",
|
||||||
"repo": "niri",
|
"repo": "niri",
|
||||||
"rev": "b3245b81a6ed8edfaf5388a74d2e0a23c24941e5",
|
"rev": "e6f3c538da0c646bda43fcde7ef7dc3b771e0c8b",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
@ -1156,11 +1156,11 @@
|
||||||
},
|
},
|
||||||
"nixpkgs-stable_3": {
|
"nixpkgs-stable_3": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1760862643,
|
"lastModified": 1761468971,
|
||||||
"narHash": "sha256-PXwG0TM7Ek87DNx4LbGWuD93PbFeKAJs4FfALtp7Wo0=",
|
"narHash": "sha256-vY2OLVg5ZTobdroQKQQSipSIkHlxOTrIF1fsMzPh8w8=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "33c6dca0c0cb31d6addcd34e90a63ad61826b28c",
|
"rev": "78e34d1667d32d8a0ffc3eba4591ff256e80576e",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
@ -1390,7 +1390,7 @@
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1,
|
"lastModified": 1,
|
||||||
"narHash": "sha256-F3ysDLjeyNGHcZYOQHbw8kjBqf3L+ESrZs9XMRefOJQ=",
|
"narHash": "sha256-5i6dXIjMmBZZ4WusMd/kCPijOVQR9AkosndKF07QVIo=",
|
||||||
"path": "./nvchad",
|
"path": "./nvchad",
|
||||||
"type": "path"
|
"type": "path"
|
||||||
},
|
},
|
||||||
|
|
@ -1836,11 +1836,11 @@
|
||||||
"xwayland-satellite-unstable": {
|
"xwayland-satellite-unstable": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1759707084,
|
"lastModified": 1761622056,
|
||||||
"narHash": "sha256-0pkftKs6/LReNvxw7DVTN2AJEheZVgyeK0Aarbagi70=",
|
"narHash": "sha256-fBrUszJXmB4MY+wf3QsCnqWHcz7u7fLq0QMAWCltIQg=",
|
||||||
"owner": "Supreeeme",
|
"owner": "Supreeeme",
|
||||||
"repo": "xwayland-satellite",
|
"repo": "xwayland-satellite",
|
||||||
"rev": "a9188e70bd748118b4d56a529871b9de5adb9988",
|
"rev": "0728d59ff6463a502e001fb090f6eb92dbc04756",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
|
||||||
|
|
@ -18,6 +18,8 @@ in
|
||||||
enable = true;
|
enable = true;
|
||||||
extraPackages = with pkgs; [
|
extraPackages = with pkgs; [
|
||||||
editor-runtime
|
editor-runtime
|
||||||
|
|
||||||
|
pkg-config
|
||||||
];
|
];
|
||||||
neovim = pkgs.neovim-nightly;
|
neovim = pkgs.neovim-nightly;
|
||||||
backup = true;
|
backup = true;
|
||||||
|
|
|
||||||
|
|
@ -1,102 +1,99 @@
|
||||||
require "nvchad.options"
|
|
||||||
|
|
||||||
local o = vim.o
|
|
||||||
local opt = vim.opt
|
local opt = vim.opt
|
||||||
|
|
||||||
o.autoindent = true
|
local options = {
|
||||||
o.autoread = true
|
autoindent = true,
|
||||||
opt.backspace = {
|
autoread = true,
|
||||||
"indent",
|
backspace = {
|
||||||
"eol",
|
"indent",
|
||||||
"start",
|
"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
|
for key, value in pairs(options) do
|
||||||
opt.breakindentopt = { "sbr" }
|
opt[key] = value
|
||||||
o.showbreak = "↪"
|
end
|
||||||
|
|
||||||
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
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue