complete rewrite of options using more idiomatic neovim constructs

This commit is contained in:
aminnairi
2023-12-06 04:52:07 +01:00
parent 8f13863d45
commit 2ded844e8a
+42 -39
View File
@@ -1,40 +1,43 @@
vim.o.autoindent = true local opt = vim.opt
vim.o.autoread = true
vim.o.backspace = "indent,eol,start" opt.autoindent = true
vim.o.bufhidden = "hide" opt.autoread = true
vim.o.clipboard = "unnamedplus" opt.backspace = "indent,eol,start"
vim.o.confirm = true opt.bufhidden = "hide"
vim.o.copyindent = true opt.clipboard:append("unnamedplus")
vim.o.emoji = true opt.confirm = true
vim.o.encoding = "UTF-8" opt.copyindent = true
vim.o.expandtab = true opt.emoji = true
vim.o.fileignorecase = true opt.encoding = "UTF-8"
vim.o.hlsearch = true opt.expandtab = true
vim.o.ignorecase = true opt.fileignorecase = true
vim.o.incsearch = true opt.hlsearch = true
vim.o.infercase = true opt.ignorecase = true
vim.o.joinspaces = true opt.incsearch = true
vim.o.laststatus = 2 opt.infercase = true
vim.o.lazyredraw = false opt.joinspaces = true
vim.o.nobackup = true opt.laststatus = 2
vim.o.nobreakindent = true opt.lazyredraw = false
vim.o.nocompatible = true opt.backup = false
vim.o.noerrorbells = true opt.breakindent = false
vim.o.nofoldenable = true opt.compatible = false
vim.o.nolinebreak = true opt.errorbells = false
vim.o.noswapfile = true opt.linebreak = false
vim.o.number = true opt.swapfile = false
vim.o.path = vim.o.path .. "**" opt.number = true
vim.o.relativenumber = true opt.relativenumber = true
vim.o.shiftround = true opt.shiftround = true
vim.o.shiftwidth = 2 opt.shiftwidth = 2
vim.o.shiftwidth = 2 opt.shiftwidth = 2
vim.o.smartcase = true opt.smartcase = true
vim.o.smartindent = true opt.smartindent = true
vim.o.smarttab = true opt.smarttab = true
vim.o.softtabstop = 2 opt.softtabstop = 2
vim.o.tabstop = 2 opt.tabstop = 2
vim.o.wildignore = "*.o,*.obj,./node_modules/*"
vim.o.wildignorecase = true
vim.syntax = "on" vim.syntax = "on"
vim.o.wrap = "off" opt.wrap = false
opt.cursorline = true
opt.termguicolors = true
opt.signcolumn = "yes"
opt.splitright = true
opt.splitbelow = true