.dotfiles/nvim/lua/options.lua

55 lines
1 KiB
Lua
Raw Normal View History

2022-01-23 23:24:50 +01:00
-- OPTIONS
-- syntax
vim.cmd [[
syntax on
let mapleader=" "
2022-01-24 18:56:10 +01:00
colorscheme sonokai
2022-01-23 23:24:50 +01:00
hi MatchParen guibg=NONE guifg=red gui=bold
set shortmess+=c
]]
-- color settings
vim.opt.termguicolors = true
2022-01-23 23:24:50 +01:00
-- random settings
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'
2022-01-23 23:24:50 +01:00
-- tabs and line wrap
vim.opt.wrapmargin = 8
vim.opt.backspace = 'indent,eol,start'
vim.opt.encoding = 'utf-8'
vim.opt.autoindent = true
2022-01-23 23:24:50 +01:00
-- search
vim.opt.incsearch = true
vim.opt.hlsearch = true
vim.opt.smartcase = true
2022-01-23 23:24:50 +01:00
-- Disable Backup and Swap files
vim.opt.swapfile = false
vim.opt.backup = false
vim.opt.writebackup = false
2022-01-23 23:24:50 +01:00
-- setup split
vim.opt.splitbelow = true
vim.opt.splitright = true
2022-01-23 23:24:50 +01:00
-- Enable folding
vim.opt.foldmethod = 'indent'
vim.opt.foldlevel = 99