-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathoptions.lua
More file actions
44 lines (27 loc) · 799 Bytes
/
Copy pathoptions.lua
File metadata and controls
44 lines (27 loc) · 799 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
require "nvchad.options"
vim.g.mapleader = " "
vim.opt.title = true
vim.opt.exrc = true
vim.opt.secure = false
vim.opt.ttyfast = true
vim.opt_global.jumpoptions = "stack"
-- 高亮所在行
vim.opt.cursorline = true
-- 菜单最多显示20行
vim.opt.pumheight = 20
vim.opt.updatetime = 300
vim.opt.timeout = true
vim.opt.timeoutlen = 450
vim.opt.confirm = true
-- 禁用 netrw
vim.g.loaded_netrw = 1
vim.g.loaded_netrwPlugin = 1
vim.opt_global.encoding = "UTF-8"
vim.opt.fileencoding = "UTF-8"
-- 当文件被外部程序修改时,自动加载
vim.opt.autoread = true
-- split window 从下边和右边出现
vim.opt.splitbelow = false
vim.opt.splitright = true
vim.opt_global.grepprg = "rg --vimgrep --no-heading --smart-case"
vim.opt_global.grepformat = "%f:%l:%c:%m,%f:%l:%m"