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'
|
2022-02-23 00:18:26 +01:00
|
|
|
|
|
|
|
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
|
2022-02-23 00:18:26 +01:00
|
|
|
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
|
2022-02-23 00:18:26 +01:00
|
|
|
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
|
2022-02-23 00:18:26 +01:00
|
|
|
vim.opt.swapfile = false
|
|
|
|
vim.opt.backup = false
|
|
|
|
vim.opt.writebackup = false
|
2022-01-23 23:24:50 +01:00
|
|
|
|
|
|
|
-- setup split
|
2022-02-23 00:18:26 +01:00
|
|
|
vim.opt.splitbelow = true
|
|
|
|
vim.opt.splitright = true
|
2022-01-23 23:24:50 +01:00
|
|
|
|
|
|
|
-- Enable folding
|
2022-02-23 00:18:26 +01:00
|
|
|
vim.opt.foldmethod = 'indent'
|
|
|
|
vim.opt.foldlevel = 99
|