.dotfiles/nvim/lua/options.lua
2023-06-16 01:49:24 +02:00

53 lines
1,011 B
Lua

-- OPTIONS
-- syntax
vim.cmd [[
let mapleader = " "
colorscheme sonokai
]]
-- color settings
vim.opt.termguicolors=true
vim.g.do_filetype_lua = 1
-- random settings
vim.opt.shortmess:append('c')
vim.opt.number=true
vim.opt.rnu=true
vim.opt.clipboard='unnamed'
vim.opt.mouse='nvi'
vim.opt.visualbell = true
vim.opt.virtualedit = 'block'
vim.opt.scrolloff = 1
vim.opt.wildmenu = true
vim.opt.autoread = true
vim.opt.lazyredraw = true
vim.opt.history = 250
vim.opt.showmode = false
vim.opt.completeopt = 'menuone,noinsert,noselect'
-- tabs and line wrap
vim.opt.wrapmargin = 8
vim.opt.backspace = 'indent,eol,start'
vim.opt.encoding = 'utf-8'
vim.opt.autoindent = true
-- search
vim.opt.incsearch = true
vim.opt.hlsearch = true
vim.opt.smartcase = true
-- Disable Backup and Swap files
vim.opt.swapfile = false
vim.opt.backup = false
vim.opt.writebackup = false
-- setup split
vim.opt.splitbelow = true
vim.opt.splitright = true
-- Enable folding
vim.opt.foldmethod = 'indent'
vim.opt.foldlevel = 99