Initial configuration converted to lua

Still many missing plugins and configurations
This commit is contained in:
Marko Korhonen 2020-12-14 19:11:20 +02:00
parent c41172efbd
commit ec02529615
No known key found for this signature in database
GPG key ID: 911B85FBC6003FE5
19 changed files with 137 additions and 472 deletions

View file

@ -0,0 +1,44 @@
local o = vim.o
local cmd = vim.cmd
------ Appearance ------
-- Set colorscheme
cmd 'colorscheme onedark'
-- True colors
o.termguicolors = true
-- Floating window transparency
o.winblend = 10
-- Remove extra line
o.cmdheight = 1
-- Always show signcolumn
o.signcolumn = 'yes'
-- Gutter and cursoline bg transparent
cmd 'highlight CursorLineNr guibg=transparent'
cmd 'highlight SignColumn guibg=transparent'
------ Misc -------
-- Case insensitive search
o.ignorecase = true
o.smartcase = true
-- Use system clipboard
o.clipboard = 'unnamedplus'
-- Autoindent and syntax higlight
o.autoindent = true
o.smartindent = true
o.tabstop = 4
o.shiftwidth = 4
cmd 'syntax on'
cmd 'filetype on'
cmd 'filetype plugin indent on'
-- Disable auto commenting
o.formatoptions = 'cro'