Add nvim options: clipboard, scrolloff, relative numbers, indent, undo
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user