.dotfiles/nvim/lua/options.lua

54 lines
1,011 B
Lua
Raw Normal View History

2022-01-23 23:24:50 +01:00
-- OPTIONS
-- syntax
vim.cmd [[
2022-04-18 03:40:59 +02:00
let mapleader = " "
colorscheme sonokai
2022-01-23 23:24:50 +01:00
]]
-- color settings
2022-04-18 03:40:59 +02:00
vim.opt.termguicolors=true
vim.g.do_filetype_lua = 1
2022-01-23 23:24:50 +01:00
-- random settings
2023-06-16 01:49:24 +02:00
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'
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