config.nvim/lua/core.lua
2021-09-14 19:58:30 +08:00

27 lines
496 B
Lua

-- Core Settings
local opt = vim.o
local global = vim.g
-- look and feel
opt.relativenumber = true
opt.number = true
opt.showmode = false
opt.scrolloff = 10
opt.ruler = true
opt.termguicolors = true
opt.tabstop = 2
opt.shiftwidth = 2
-- controlling
opt.ignorecase = true
opt.smartcase = true
opt.smartindent = true
opt.mouse = "i"
-- completion for lua
opt.completeopt = 'menuone,noselect'
-- neoformat settings.
global.neoformat_basic_format_align = 1
global.neoformat_basic_format_trim = 1