2022-08-08 11:07:10 +02:00
|
|
|
vim.o.number = true -- line numbers
|
|
|
|
vim.o.list = true -- show whitespace
|
2022-08-09 11:26:22 +02:00
|
|
|
vim.o.listchars = 'tab:▸ ,trail:·,nbsp:+'
|
2022-08-08 23:11:28 +02:00
|
|
|
vim.o.textwidth = 80 -- default text width
|
|
|
|
vim.o.colorcolumn = tostring(vim.o.textwidth)
|
2022-08-11 18:51:51 +02:00
|
|
|
vim.o.wrap = false -- don't wrap long lines
|
2022-08-12 03:33:18 +02:00
|
|
|
vim.o.linebreak = true -- break on word boundaries
|
|
|
|
|
2022-08-10 18:05:34 +02:00
|
|
|
vim.o.cursorline = true -- highlight row with cursor
|
|
|
|
vim.o.scrolloff = 5 -- show 5 lines below/above cursor
|
2022-08-13 01:34:38 +02:00
|
|
|
vim.o.sidescrolloff = 5 -- same for left/right
|
2022-08-08 11:07:10 +02:00
|
|
|
vim.o.expandtab = true -- indent using spaces
|
|
|
|
vim.o.tabstop = 4 -- 1 tab = 4 spaces
|
|
|
|
vim.o.shiftwidth = 4 -- 1 indentation = 4 spaces
|
|
|
|
vim.o.completeopt = 'menu,menuone,noselect' -- completion popup
|
2022-08-08 21:42:21 +02:00
|
|
|
vim.o.autochdir = true -- change workir to current file dir
|
2022-08-10 16:24:04 +02:00
|
|
|
vim.o.updatetime = 500 -- fire CursorHold autocommand event
|
2022-08-11 18:51:51 +02:00
|
|
|
vim.o.cmdheight = 2 -- message area size
|
2022-08-13 01:34:38 +02:00
|
|
|
vim.o.mouse = '' -- make use of mouse in these modes
|
2022-08-11 18:51:51 +02:00
|
|
|
vim.o.pumheight = 10 -- maximum entries in popup menu
|
|
|
|
vim.o.smartindent = true -- indent after { and so on
|
|
|
|
|
2022-08-08 01:41:01 +02:00
|
|
|
-- theme
|
2022-08-08 11:07:10 +02:00
|
|
|
vim.o.termguicolors = true -- 24 bit colours
|
2022-08-08 13:57:38 +02:00
|
|
|
packer.use {
|
|
|
|
'https://github.com/owozsh/amora',
|
|
|
|
config = function()
|
|
|
|
vim.cmd('colorscheme amora')
|
2022-08-12 17:06:14 +02:00
|
|
|
-- make comments a bit lighter
|
|
|
|
vim.cmd([[
|
|
|
|
highlight AmoraComment ctermfg=61 guifg=#7C4180
|
|
|
|
highlight AmoraCommentBold cterm=bold ctermfg=61 gui=bold guifg=#7C4180
|
|
|
|
]])
|
2022-08-08 13:57:38 +02:00
|
|
|
end
|
|
|
|
}
|
|
|
|
|
2022-08-08 21:42:35 +02:00
|
|
|
packer.use 'https://github.com/editorconfig/editorconfig-vim'
|