mirror of
https://github.com/aminnairi/dotfiles.git
synced 2026-09-14 13:22:13 +02:00
complete rewrite of options using more idiomatic neovim constructs
This commit is contained in:
@@ -1,40 +1,43 @@
|
||||
vim.o.autoindent = true
|
||||
vim.o.autoread = true
|
||||
vim.o.backspace = "indent,eol,start"
|
||||
vim.o.bufhidden = "hide"
|
||||
vim.o.clipboard = "unnamedplus"
|
||||
vim.o.confirm = true
|
||||
vim.o.copyindent = true
|
||||
vim.o.emoji = true
|
||||
vim.o.encoding = "UTF-8"
|
||||
vim.o.expandtab = true
|
||||
vim.o.fileignorecase = true
|
||||
vim.o.hlsearch = true
|
||||
vim.o.ignorecase = true
|
||||
vim.o.incsearch = true
|
||||
vim.o.infercase = true
|
||||
vim.o.joinspaces = true
|
||||
vim.o.laststatus = 2
|
||||
vim.o.lazyredraw = false
|
||||
vim.o.nobackup = true
|
||||
vim.o.nobreakindent = true
|
||||
vim.o.nocompatible = true
|
||||
vim.o.noerrorbells = true
|
||||
vim.o.nofoldenable = true
|
||||
vim.o.nolinebreak = true
|
||||
vim.o.noswapfile = true
|
||||
vim.o.number = true
|
||||
vim.o.path = vim.o.path .. "**"
|
||||
vim.o.relativenumber = true
|
||||
vim.o.shiftround = true
|
||||
vim.o.shiftwidth = 2
|
||||
vim.o.shiftwidth = 2
|
||||
vim.o.smartcase = true
|
||||
vim.o.smartindent = true
|
||||
vim.o.smarttab = true
|
||||
vim.o.softtabstop = 2
|
||||
vim.o.tabstop = 2
|
||||
vim.o.wildignore = "*.o,*.obj,./node_modules/*"
|
||||
vim.o.wildignorecase = true
|
||||
local opt = vim.opt
|
||||
|
||||
opt.autoindent = true
|
||||
opt.autoread = true
|
||||
opt.backspace = "indent,eol,start"
|
||||
opt.bufhidden = "hide"
|
||||
opt.clipboard:append("unnamedplus")
|
||||
opt.confirm = true
|
||||
opt.copyindent = true
|
||||
opt.emoji = true
|
||||
opt.encoding = "UTF-8"
|
||||
opt.expandtab = true
|
||||
opt.fileignorecase = true
|
||||
opt.hlsearch = true
|
||||
opt.ignorecase = true
|
||||
opt.incsearch = true
|
||||
opt.infercase = true
|
||||
opt.joinspaces = true
|
||||
opt.laststatus = 2
|
||||
opt.lazyredraw = false
|
||||
opt.backup = false
|
||||
opt.breakindent = false
|
||||
opt.compatible = false
|
||||
opt.errorbells = false
|
||||
opt.linebreak = false
|
||||
opt.swapfile = false
|
||||
opt.number = true
|
||||
opt.relativenumber = true
|
||||
opt.shiftround = true
|
||||
opt.shiftwidth = 2
|
||||
opt.shiftwidth = 2
|
||||
opt.smartcase = true
|
||||
opt.smartindent = true
|
||||
opt.smarttab = true
|
||||
opt.softtabstop = 2
|
||||
opt.tabstop = 2
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user