1
Fork 0
nixos-system-config/dotfiles/nvim/lua/settings/options.lua

26 lines
461 B
Lua

local options = {
tabstop = 4,
softtabstop = 4,
shiftwidth = 4,
expandtab = true,
number = true,
relativenumber = true,
fileencoding = "utf-8",
cursorline = true,
wrap = false,
signcolumn = "yes",
swapfile = false,
errorbells = false,
undofile = true,
incsearch = true,
hlsearch = false,
backup = false,
termguicolors = true,
}
for option, value in pairs(options) do
pcall(function()
vim.opt[option] = value
end)
end