38 lines
734 B
Lua
38 lines
734 B
Lua
-- CORE SETTINGS
|
|
local opt = vim.o
|
|
local global = vim.g
|
|
|
|
-- look and feel
|
|
vim.opt.shortmess:append({I = true}) -- remove intro message
|
|
opt.termguicolors = true
|
|
opt.ruler = true
|
|
opt.relativenumber = true
|
|
opt.number = true
|
|
opt.showmode = false
|
|
opt.scrolloff = 10
|
|
opt.softtabstop = 2
|
|
opt.shiftwidth = 2
|
|
|
|
-- controlling
|
|
opt.ignorecase = true
|
|
opt.smartcase = true
|
|
opt.smartindent = true
|
|
opt.mouse = "i"
|
|
opt.autoindent = true
|
|
|
|
-- completion for lua
|
|
opt.completeopt = 'noinsert'
|
|
|
|
-- neoformat settings.
|
|
global.neoformat_basic_format_align = 1
|
|
global.neoformat_basic_format_trim = 1
|
|
|
|
-- glow settings
|
|
global.glow_border = "rounded"
|
|
|
|
-- leader settings
|
|
global.mapleader = ' '
|
|
|
|
-- indent blankline settings
|
|
global.indent_blankline_char = '▏'
|