diff options
| author | Josh <joshott16@gmail.com> | 2025-07-22 13:17:53 -0400 |
|---|---|---|
| committer | Josh <joshott16@gmail.com> | 2025-07-22 13:17:53 -0400 |
| commit | abd69f6af67ab55bee2a2fe02c75efc3b956c224 (patch) | |
| tree | 1c70e1096a2062667c0a45989054363233fc9c4a /nvim/lua/options.lua | |
| parent | 795287e3ec351def221f9b44d358a182062e203a (diff) | |
| download | dotfiles-abd69f6af67ab55bee2a2fe02c75efc3b956c224.tar.gz dotfiles-abd69f6af67ab55bee2a2fe02c75efc3b956c224.zip | |
reworked nvim keymaps and options
Diffstat (limited to 'nvim/lua/options.lua')
| -rw-r--r-- | nvim/lua/options.lua | 47 |
1 files changed, 28 insertions, 19 deletions
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 |