2021-06-24 09:05:08 +02:00
|
|
|
local function init()
|
2021-06-23 22:51:18 +02:00
|
|
|
cmd('colorscheme moonlight')
|
|
|
|
|
|
|
|
opt.completeopt = {'menuone', 'noinsert', 'noselect'} -- Completion options (for deoplete)
|
|
|
|
opt.expandtab = true -- Use spaces instead of tabs
|
|
|
|
opt.hidden = true -- Enable background buffers
|
|
|
|
opt.ignorecase = true -- Ignore case
|
|
|
|
opt.joinspaces = false -- No double spaces with join
|
|
|
|
opt.list = true -- Show some invisible characters
|
|
|
|
opt.number = true -- Show line numbers
|
|
|
|
opt.relativenumber = true -- Relative line numbers
|
|
|
|
opt.scrolloff = 4 -- Lines of context
|
|
|
|
opt.shiftround = true -- Round indent
|
|
|
|
opt.shiftwidth = 2 -- Size of an indent
|
|
|
|
opt.sidescrolloff = 8 -- Columns of context
|
|
|
|
opt.smartcase = true -- Do not ignore case with capitals
|
2021-06-28 14:18:14 +02:00
|
|
|
opt.autoindent = true -- Insert indents automatically
|
2021-06-23 22:51:18 +02:00
|
|
|
opt.splitbelow = true -- Put new windows below current
|
|
|
|
opt.splitright = true -- Put new windows right of current
|
|
|
|
opt.tabstop = 2 -- Number of spaces tabs count for
|
|
|
|
opt.termguicolors = true -- True color support
|
|
|
|
opt.wildmode = {'list', 'longest'} -- Command-line completion mode
|
|
|
|
opt.wrap = false -- Disable line wrap
|
2021-08-05 20:35:26 +02:00
|
|
|
opt.mouse = 'a' -- Enable mouse for all previous modes
|
2022-02-07 16:25:56 +01:00
|
|
|
o.clipboard = 'unnamedplus' -- Enabled clipboard shared yank
|
2021-06-24 09:05:08 +02:00
|
|
|
end
|
2021-06-23 22:51:18 +02:00
|
|
|
|
|
|
|
return {
|
|
|
|
init = init
|
2022-02-07 16:25:56 +01:00
|
|
|
}
|