47 lines
784 B
Lua
47 lines
784 B
Lua
local opt = vim.opt
|
|
|
|
vim.g.mapleader = '\\'
|
|
vim.g.maplocalleader = ','
|
|
|
|
-- enable line numbering
|
|
opt.number = true
|
|
|
|
-- enable splitting to right and below
|
|
opt.splitright = true
|
|
opt.splitbelow = true
|
|
|
|
-- enable 24-bit colour terminal
|
|
opt.termguicolors = true
|
|
|
|
-- set terminal title
|
|
opt.title = true
|
|
|
|
-- enable spelling for EN-GB
|
|
opt.spell = true
|
|
opt.spelllang = 'en_gb'
|
|
|
|
-- ignore compiled files in completion
|
|
opt.wildignore = {
|
|
'*pycache*',
|
|
'*.o',
|
|
'*~',
|
|
'*.pyc',
|
|
}
|
|
|
|
-- enable cursor line and column
|
|
opt.cursorline = true
|
|
opt.cursorcolumn = true
|
|
|
|
-- line control
|
|
opt.expandtab = true
|
|
opt.textwidth = 80
|
|
opt.shiftwidth = 2
|
|
opt.tabstop = 2
|
|
opt.colorcolumn = '+1'
|
|
|
|
-- extra options set through vim.cmd
|
|
vim.cmd([[
|
|
let g:gruvbox_italic=1
|
|
highlight ColorColumn ctermbg=lightgrey
|
|
]])
|