diff --git a/lua/crony/set.lua b/lua/crony/set.lua index 3db3973..5aa7fc5 100644 --- a/lua/crony/set.lua +++ b/lua/crony/set.lua @@ -1,54 +1,66 @@ +local opt = vim.opt + -- Don't highlight on search -vim.o.hlsearch = false -vim.o.incsearch = true +opt.hlsearch = false +opt.incsearch = true -- Enable line numbers by default -vim.o.number = true -vim.o.relativenumber = true +opt.number = true +opt.relativenumber = true -- Tab settings -vim.o.tabstop = 4 -vim.o.softtabstop = 4 -vim.o.shiftwidth = 4 -vim.o.expandtab = true +opt.tabstop = 4 +opt.softtabstop = 4 +opt.shiftwidth = 4 +opt.expandtab = true -- Enable smart indenting -vim.o.smartindent = true +opt.smartindent = true -- Enable the mouse, just to have it -vim.o.mouse = 'a' +opt.mouse = 'a' -- Enable system clipboard -vim.o.clipboard = 'unnamedplus' +opt.clipboard = 'unnamedplus' -- Enable break indent -vim.o.breakindent = true +opt.breakindent = true -- History settings -vim.o.undofile = true -vim.o.undodir = os.getenv("HOME") .. "/.local/state/nvim" -vim.o.swapfile = true -vim.o.swapfile = true +opt.undofile = true +opt.undodir = os.getenv("HOME") .. "/.local/state/nvim" +opt.swapfile = true +opt.swapfile = true -- Case-insensitive searching UNLESS \C or capital in search -vim.o.ignorecase = true -vim.o.smartcase = true +opt.ignorecase = true +opt.smartcase = true -- Keep signcolumn on by default -vim.o.signcolumn = 'yes' +opt.signcolumn = 'yes' -- Decrease update time -vim.o.updatetime = 50 -vim.o.timeoutlen = 300 +opt.updatetime = 50 +opt.timeoutlen = 300 -- Set completeopt to have a better completion experience -vim.o.completeopt = 'menuone,noselect' +opt.completeopt = 'menuone,noselect' -- Enable true color support -vim.o.termguicolors = true +opt.termguicolors = true -- Enable scroll off -vim.o.scrolloff = 8 +opt.scrolloff = 8 -- Color the 80 column -vim.o.colorcolumn = "80" +opt.colorcolumn = "80" + +-- Don't show mode I'm in, already have a nice status line for that +opt.showmode = false + +-- Enable global status line +opt.laststatus = 3 + +-- Better split options +opt.splitbelow = true +opt.splitright = true