-
Notifications
You must be signed in to change notification settings - Fork 1
/
init.lua
37 lines (27 loc) · 809 Bytes
/
init.lua
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
vim.g.have_nerd_font = false
vim.opt.number = true
vim.opt.encoding = 'utf-8'
vim.opt.fileencodings = 'ucs-bom,utf-8,cp936,gb18030,big5,euc-jp,euc-kr,latin1'
vim.opt.list = true
vim.opt.listchars = { tab = '» ', trail = '·', nbsp = '␣' }
vim.opt.inccommand = 'split'
vim.opt.cursorline = true
vim.opt.undofile = true
vim.opt.shiftwidth = 2
vim.opt.tabstop = 2
vim.opt.softtabstop = 2
vim.opt.expandtab = true
vim.opt.selection = 'inclusive'
vim.opt.wildmenu = true
vim.opt.laststatus = 2
vim.opt.vb = true
vim.opt.updatetime = 250
vim.opt.termguicolors = true
vim.opt.guifont = 'IBM Plex Mono Regular:h16'
vim.wo.wrap = false
vim.keymap.set('n', '<Esc>', '<cmd>nohlsearch<CR>')
vim.api.nvim_create_autocmd('BufWritePre', {
pattern = '*',
command = '%s/\\s\\+$//e',
})
require("config.lazy")