dotfiles/home/.config/nvim/lua/settings.lua
Marko Korhonen ec02529615
Initial configuration converted to lua
Still many missing plugins and configurations
2020-12-14 19:11:20 +02:00

44 lines
780 B
Lua

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'