vim.loader.enable()
vim.opt.mouse = ""

-- no mode on the cmd line, only shown on lualine
vim.opt.showmode = false

-- folds
vim.opt.foldenable = false
vim.opt.foldmethod = "manual"

-- wrap
vim.opt.wrap = false
vim.opt.breakat = " "
vim.opt.linebreak = true
-- vim.opt.textwidth = 80

-- remove eof character
vim.opt.fillchars = { eob = " " }

-- Save undo history
vim.opt.undofile = true

-- always number line
vim.opt.nu = true

-- incremental search
vim.opt.hlsearch = false
vim.opt.incsearch = true

-- term colors
vim.opt.termguicolors = true

-- least amount of lines while scrolling is 10
vim.opt.scrolloff = 999
vim.opt.signcolumn = "yes"

-- fast update
vim.opt.updatetime = 50

-- better indentation
vim.opt.tabstop = 2
vim.opt.softtabstop = 2
vim.opt.shiftwidth = 2
vim.opt.expandtab = true
vim.opt.smartindent = true
vim.opt.autoindent = true

-- Fix markdown indentation settings
vim.g.markdown_recommended_style = 0

-- Enable break indent
vim.opt.breakindent = true

-- Split direction
vim.opt.splitright = true
vim.opt.splitbelow = true

vim.opt.background = "dark"

-- indent symbols
-- tab cannot be less than 2
vim.opt.list = true
vim.opt.listchars = { tab = "  ", trail = "·", nbsp = "␣" }
