setup editor options

This commit is contained in:
Nick Burt 2023-12-14 22:19:23 -06:00
parent c1610371bb
commit 03bd849e9c
1 changed files with 21 additions and 8 deletions

View File

@ -200,20 +200,33 @@ require('lazy').setup({
-- [[ Setting options ]] -- [[ Setting options ]]
-- Set highlight on search -- Line numbers
vim.o.hlsearch = false vim.opt.nu = true
vim.opt.relativenumber = true
-- Make line numbers default -- Highlighting on search
vim.wo.number = true vim.opt.hlsearch = true
vim.opt.incsearch = true
-- Enable mouse mode -- Enable mouse mode
vim.o.mouse = 'a' vim.opt.mouse = 'a'
-- Sync clipboard between OS and Neovim. -- Sync clipboard between OS and Neovim.
vim.o.clipboard = 'unnamedplus' vim.opt.clipboard = 'unnamedplus'
-- Enable break indent -- Handle indentation
vim.o.breakindent = true vim.opt.tabstop = 4
vim.opt.softtabstop = 4
vim.opt.shiftwidth = 4
vim.opt.expandtab = true
vim.opt.smartindent = true
vim.opt.breakindent = true
-- Remove line wrapping
vim.opt.wrap = false
-- Scroll buffer
vim.opt.scrolloff = 8
-- Save undo history -- Save undo history
vim.o.undofile = true vim.o.undofile = true