47 lines
766 B
Lua
47 lines
766 B
Lua
|
-- source file everytime it changes
|
||
|
vim.cmd([[
|
||
|
augroup user_options
|
||
|
autocmd!
|
||
|
autocmd BufWritePost options.lua source <afile>
|
||
|
augroup end
|
||
|
]])
|
||
|
|
||
|
-- termguicolors
|
||
|
vim.opt.termguicolors = true
|
||
|
|
||
|
-- line numbers
|
||
|
vim.opt.number = true
|
||
|
|
||
|
-- tabwidth
|
||
|
vim.opt.tabstop = 4
|
||
|
vim.opt.shiftwidth = 4
|
||
|
|
||
|
-- indent with spaces
|
||
|
vim.opt.expandtab = true
|
||
|
|
||
|
-- scroll offset
|
||
|
vim.opt.scrolloff = 4
|
||
|
|
||
|
-- don't warp lines
|
||
|
vim.opt.wrap = false
|
||
|
|
||
|
-- split to right/below
|
||
|
vim.opt.splitright = true
|
||
|
vim.opt.splitbelow = true
|
||
|
|
||
|
-- presistent undo
|
||
|
vim.opt.undofile = true
|
||
|
|
||
|
-- searching
|
||
|
vim.opt.ignorecase = true
|
||
|
vim.opt.smartcase = true
|
||
|
|
||
|
-- preview commands
|
||
|
vim.opt.inccommand = "split"
|
||
|
|
||
|
-- enable cursorline
|
||
|
vim.opt.cursorline = true
|
||
|
|
||
|
-- coq.nvim
|
||
|
vim.g.coq_settings = { auto_start = "shut-up" }
|