pkg(nixvim): Set leader key and modify some options

This commit is contained in:
ulic-youthlic 2025-07-13 06:04:55 +08:00
parent 96c4fb932d
commit f764a607c0
Signed by: youthlic
GPG key ID: 63E86C3C14A0D721

View file

@ -1,4 +1,13 @@
{...}: { {...}: {
globals = {
mapleader = {
__raw =
#lua
''
vim.keycode("<Space>")
'';
};
};
opts = { opts = {
autoindent = true; autoindent = true;
autoread = true; autoread = true;
@ -38,13 +47,14 @@
mouse = "a"; mouse = "a";
number = true; number = true;
numberwidth = 2; numberwidth = 4;
relativenumber = true; relativenumber = true;
scrollback = 100000; scrollback = 100000;
scrolloff = 5; scrolloff = 5;
shiftround = true; shiftround = true;
shiftwidth = 2; shiftwidth = 2;
showmode = false;
signcolumn = "auto"; signcolumn = "auto";
smoothscroll = true; smoothscroll = true;
splitbelow = true; splitbelow = true;