clean config

This commit is contained in:
Harivansh Rathi 2026-02-20 22:34:08 -05:00
parent 1db6db7f92
commit 25aded9685
19 changed files with 468 additions and 852 deletions

View file

@ -1,52 +1,42 @@
-- Vim options
local o, opt = vim.o, vim.opt
-- Line numbers
o.number = true
o.relativenumber = true
-- Indentation
o.tabstop = 2
o.shiftwidth = 2
o.expandtab = true
o.smartindent = true
o.breakindent = true
-- Search
o.ignorecase = true
o.smartcase = true
o.hlsearch = false
o.incsearch = true
-- UI
o.termguicolors = true
o.cursorline = false
o.scrolloff = 8
o.signcolumn = "yes:2"
o.signcolumn = 'yes'
o.wrap = false
o.showmode = false
o.laststatus = 3
o.cmdheight = 0
opt.fillchars = { vert = "", fold = "", foldsep = "", diff = "" }
opt.shortmess:append("S")
opt.fillchars = { vert = '|', fold = '-', foldsep = '|', diff = '-' }
opt.shortmess:append('S')
-- Splits
o.splitbelow = true
o.splitright = true
-- Files
o.swapfile = false
o.backup = false
o.undofile = true
o.undodir = vim.fn.stdpath("data") .. "/undo"
o.undodir = vim.fn.stdpath('data') .. '/undo'
-- Folds (nvim-ufo)
o.foldlevel = 99
o.foldlevelstart = 99
o.foldenable = true
-- Misc
o.updatetime = 250
o.mouse = "a"
o.clipboard = "unnamedplus"
o.mouse = 'a'
o.clipboard = 'unnamedplus'