diff options
| author | Nic Gaffney <gaffney_nic@protonmail.com> | 2026-04-18 04:29:55 -0500 |
|---|---|---|
| committer | Nic Gaffney <gaffney_nic@protonmail.com> | 2026-04-18 04:29:55 -0500 |
| commit | 268cce40329eb3a91665ebe3ce65a0aa7b2c692e (patch) | |
| tree | 179f74cb920740ce03893f6d0cd51b74ad4f7800 /lua/config/options.lua | |
| download | nvim-268cce40329eb3a91665ebe3ce65a0aa7b2c692e.tar.gz | |
initial
Diffstat (limited to 'lua/config/options.lua')
| -rw-r--r-- | lua/config/options.lua | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/lua/config/options.lua b/lua/config/options.lua new file mode 100644 index 0000000..47fb6f2 --- /dev/null +++ b/lua/config/options.lua @@ -0,0 +1,40 @@ +local o = vim.o + +vim.o.nu = true +vim.o.relativenumber = true +-- tab and indent opts +vim.o.tabstop = 4 +vim.o.softtabstop = 4 +vim.o.shiftwidth = 4 +vim.o.expandtab = true +-- indents +vim.o.breakindent = true +vim.o.autoindent = true +vim.o.copyindent = true +-- no line wrapping +vim.o.wrap = false +-- minimum num lines to keep around cursor +vim.o.scrolloff = 8 +vim.o.sidescrolloff = 8 +-- search +vim.o.ignorecase = true +vim.o.smartcase = true +-- save + undo +vim.o.swapfile = false +vim.o.backup = false +vim.o.undofile = true +vim.o.hlsearch = false +-- misc +vim.o.mouse = 'a' +vim.o.clipboard = 'unnamedplus' +vim.o.completeopt = 'menuone,noselect,fuzzy' +vim.o.termguicolors = true + +-- leader keys +vim.g.mapleader = " " +vim.g.maplocalleader = "\\" + + + +-- vim.o.updatetime = 250 +-- vim.o.timeoutlen = 300 |
