From abd69f6af67ab55bee2a2fe02c75efc3b956c224 Mon Sep 17 00:00:00 2001 From: Josh Date: Tue, 22 Jul 2025 13:17:53 -0400 Subject: reworked nvim keymaps and options --- nvim/lua/options.lua | 47 ++++++++++++++++++++++++++++------------------- 1 file changed, 28 insertions(+), 19 deletions(-) (limited to 'nvim/lua/options.lua') diff --git a/nvim/lua/options.lua b/nvim/lua/options.lua index 2a81dc2..5974579 100644 --- a/nvim/lua/options.lua +++ b/nvim/lua/options.lua @@ -1,27 +1,36 @@ -vim.opt.nu = true -vim.opt.relativenumber = true +vim.cmd "set undofile" +-- vim.opt.isfname:append("@-@") +vim.g.mapleader = ' ' -vim.opt.tabstop = 4 -vim.opt.softtabstop = 4 -vim.opt.shiftwidth = 4 -vim.opt.expandtab = true +local options = { + nu = true, + relativenumber = true, -vim.opt.smartindent = false -vim.opt.autoindent = true + tabstop = 4, + softtabstop = 4, + shiftwidth = 4, + expandtab = true, -vim.opt.wrap = false + smartindent = false, + autoindent = true, -vim.opt.hlsearch = false -vim.opt.incsearch = true + wrap = false, -vim.opt.scrolloff = 8 -vim.opt.signcolumn = "no" -vim.opt.cursorline = true -vim.opt.cursorlineopt = "number" -vim.opt.isfname:append("@-@") + hlsearch = false, + incsearch = true, -vim.cmd "set undofile" + scrolloff = 8, + signcolumn = "no", + cursorline = true, + cursorlineopt = "number", -vim.g.mapleader = ' ' + ignorecase = true, + smartcase = true, + + guifont = "FiraCode:h10", + showmode = false, +} -vim.opt.guifont = "FiraCode:h10" +for k, v in pairs(options) do + vim.opt[k] = v +end -- cgit v1.3