2022-05-09 11:25:29 +08:00
|
|
|
-- CORE SETTINGS
|
|
|
|
|
2021-09-07 23:26:21 +08:00
|
|
|
local opt = 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
|
2021-09-07 23:26:21 +08:00
|
|
|
opt.relativenumber = true
|
|
|
|
opt.number = true
|
|
|
|
opt.showmode = false
|
|
|
|
opt.scrolloff = 10
|
|
|
|
opt.ruler = true
|
|
|
|
opt.termguicolors = true
|
2021-09-14 19:58:30 +08:00
|
|
|
opt.tabstop = 2
|
2021-09-07 23:26:21 +08:00
|
|
|
opt.shiftwidth = 2
|
|
|
|
|
|
|
|
-- controlling
|
|
|
|
opt.ignorecase = true
|
|
|
|
opt.smartcase = true
|
|
|
|
opt.smartindent = true
|
|
|
|
opt.mouse = "i"
|
2021-09-08 19:57:41 +08:00
|
|
|
|
|
|
|
-- completion for lua
|
2021-09-15 15:18:15 +08:00
|
|
|
opt.completeopt = 'noinsert'
|
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
|
|
|
|
2022-05-09 11:25:29 +08:00
|
|
|
-- glow settings
|
|
|
|
global.glow_border = "rounded"
|
|
|
|
|
2021-09-15 15:18:15 +08:00
|
|
|
-- leader settings
|
|
|
|
global.mapleader = ' '
|
2022-05-28 23:54:46 +08:00
|
|
|
|
|
|
|
-- indent blankline settings
|
|
|
|
global.indent_blankline_char = '▏'
|