From 0eabf2d336fa7ec89fe885bfd58069d384b3be38 Mon Sep 17 00:00:00 2001 From: kappa Date: Mon, 9 Feb 2026 09:48:42 +0900 Subject: [PATCH] Add nvim options: clipboard, scrolloff, relative numbers, indent, undo Co-Authored-By: Claude Opus 4.6 --- nvim/.config/nvim/lua/config/options.lua | 37 +++++++++++++++++++++++- 1 file changed, 36 insertions(+), 1 deletion(-) diff --git a/nvim/.config/nvim/lua/config/options.lua b/nvim/.config/nvim/lua/config/options.lua index 3ea1454..3973c42 100644 --- a/nvim/.config/nvim/lua/config/options.lua +++ b/nvim/.config/nvim/lua/config/options.lua @@ -1,3 +1,38 @@ -- Options are automatically loaded before lazy.nvim startup -- Default options that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/options.lua --- Add any additional options here + +local opt = vim.opt + +-- clipboard +opt.clipboard = "unnamedplus" + +-- scroll +opt.scrolloff = 8 +opt.sidescrolloff = 8 + +-- line numbers +opt.relativenumber = true + +-- search +opt.ignorecase = true +opt.smartcase = true + +-- indent +opt.shiftwidth = 2 +opt.tabstop = 2 +opt.softtabstop = 2 +opt.expandtab = true + +-- ui +opt.cursorline = true +opt.termguicolors = true +opt.signcolumn = "yes" +opt.wrap = false + +-- split +opt.splitbelow = true +opt.splitright = true + +-- undo +opt.undofile = true +opt.undolevels = 10000