config.nvim/lua/core.lua

33 lines
659 B
Lua
Raw Normal View History

-- CORE SETTINGS
local o = vim.o
2021-09-14 19:58:30 +08:00
local global = vim.g
2021-09-07 23:26:21 +08:00
-- look and feel
2022-04-17 20:57:18 +08:00
vim.opt.shortmess:append({I = true}) -- remove intro message
o.termguicolors = true
o.ruler = true
o.relativenumber = true
o.number = true
o.showmode = false
o.scrolloff = 10
o.softtabstop = 2
o.shiftwidth = 2
2021-09-07 23:26:21 +08:00
-- controlling
vim.opt.completeopt = {'menu', 'menuone', 'noselect'}
o.ignorecase = true
o.smartcase = true
o.smartindent = true
o.mouse = "i"
o.autoindent = true
2021-09-14 19:58:30 +08:00
-- neoformat settings.
global.neoformat_basic_format_align = 1
global.neoformat_basic_format_trim = 1
2021-10-25 10:53:37 +08:00
-- leader settings
global.mapleader = ' '
2022-05-28 23:54:46 +08:00
-- indent blankline settings
global.indent_blankline_char = ''