Add nvim options: clipboard, scrolloff, relative numbers, indent, undo

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
kappa
2026-02-09 09:48:42 +09:00
parent d4041bfb95
commit 0eabf2d336

View File

@@ -1,3 +1,38 @@
-- Options are automatically loaded before lazy.nvim startup -- 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 -- 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