Louis Hollingworth
c5000e27eb
I've been using neovim for a while but the config got messy so here is a cleaner config. Signed-off-by: Louis Hollingworth <louis@hollingworth.nl>
40 lines
684 B
Lua
40 lines
684 B
Lua
local opt = vim.opt
|
|
|
|
-- Context
|
|
opt.colorcolumn = "80"
|
|
opt.number = true
|
|
opt.relativenumber = true
|
|
opt.scrolloff = 4
|
|
opt.signcolumn = "yes"
|
|
|
|
-- Filetypes
|
|
opt.encoding = "utf8"
|
|
opt.fileencoding = "utf8"
|
|
|
|
-- Theme
|
|
opt.syntax = "ON"
|
|
opt.termguicolors = true
|
|
|
|
-- Search
|
|
opt.ignorecase = true
|
|
opt.smartcase = true
|
|
opt.incsearch = true
|
|
opt.hlsearch = true
|
|
|
|
-- Whitespace
|
|
opt.expandtab = true
|
|
opt.shiftwidth = 4
|
|
opt.softtabstop = 4
|
|
opt.tabstop = 4
|
|
opt.smartindent = true
|
|
|
|
-- Undo
|
|
opt.undodir = os.getenv("HOME") .. "/.vim/undodir"
|
|
opt.undofile = true
|
|
|
|
-- Misc
|
|
opt.backspace = "indent,eol,start"
|
|
opt.clipboard:append("unnamedplus")
|
|
opt.iskeyword:append("-")
|
|
vim.cmd[[colorscheme tokyonight]]
|