Files
dotfiles/nvim/lua/config/options.lua
Mikhail Kilin 50805a9042 Move nvim config into nvim/ subdirectory
Prepare repo structure for storing multiple dotfile configs.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-23 23:44:15 +03:00

50 lines
781 B
Lua

local opt = vim.opt
-- Line numbers
opt.number = true
opt.relativenumber = true
-- Tabs & indentation
opt.tabstop = 4
opt.shiftwidth = 4
opt.expandtab = true
opt.smartindent = true
-- Search
opt.ignorecase = true
opt.smartcase = true
opt.hlsearch = true
opt.incsearch = true
-- Appearance
opt.termguicolors = true
opt.signcolumn = "yes"
opt.cursorline = true
opt.scrolloff = 8
opt.sidescrolloff = 8
-- Line wrapping
opt.wrap = false
-- Clipboard
opt.clipboard = "unnamedplus"
-- Split behavior
opt.splitright = true
opt.splitbelow = true
-- Undo / swap
opt.undofile = true
opt.swapfile = false
opt.backup = false
-- Performance
opt.updatetime = 250
opt.timeoutlen = 300
-- Completion menu
opt.completeopt = "menuone,noselect"
-- File encoding
opt.fileencoding = "utf-8"