commit 8e7a8e36801b004b178e139f864ef1a735fd9057 Author: Fabian Schmidt Date: Wed Feb 24 18:33:43 2021 +0100 Start with theme diff --git a/init.lua b/init.lua new file mode 100644 index 0000000..9aff08f --- /dev/null +++ b/init.lua @@ -0,0 +1,6 @@ +-- init.lua + +require('lua/plugins') +require('lua/settings') +require('lua/maps') +require('lua/utils') diff --git a/lua/maps.lua b/lua/maps.lua new file mode 100644 index 0000000..e69de29 diff --git a/lua/plugins.lua b/lua/plugins.lua new file mode 100644 index 0000000..3d62ccc --- /dev/null +++ b/lua/plugins.lua @@ -0,0 +1,14 @@ +-- plugin.lua + +vim.cmd 'packadd paq-nvim' +local paq = require'paq-nvim'.paq +paq{'savq/paq-nvim', opt=true} + +-- Theme +paq 'akinsho/nvim-bufferline.lua' +paq 'hoob3rt/lualine.nvim' +paq 'airblade/vim-gitgutter' +paq 'kyazdani42/nvim-web-devicons' +paq 'doums/darcula' +paq 'junegunn/goyo.vim' +paq 'junegunn/limelight.vim' diff --git a/lua/settings.lua b/lua/settings.lua new file mode 100644 index 0000000..b4c652b --- /dev/null +++ b/lua/settings.lua @@ -0,0 +1,51 @@ +-- settings.lua + +local o = vim.o +local wo = vim.wo +local bo = vim.bo +local g = vim.g +local cmd = vim.cmd + +---- Misc Options +-- global options +o.swapfile = true +o.dir = '/tmp' +o.smartcase = true +o.laststatus = 2 +o.hlsearch = true +o.incsearch = true +o.ignorecase = true +o.scrolloff = 12 +o.mouse = 'a' + +-- window-local options +wo.number = true +wo.wrap = false + +-- buffer-local options +bo.shiftwidth = 4 +bo.tabstop = 4 +bo.softtabstop = 4 +bo.expandtab = true +bo.autoindent = true + +---- Theme +-- Font +o.guifont = 'Source Code Pro for Powerline' + +-- Statusline +local lualine = require('lualine') +lualine.status() + +-- Bufferline +local bufferline = require('bufferline') +bufferline.setup() + +local function ColorDarcula() + lualine.options.theme = 'onedark' + g.limelight_conceal_ctermfg = 'DarkGray' + cmd 'colorscheme darcula' +end + +bo.syntax = 'on' +ColorDarcula() diff --git a/lua/utils.lua b/lua/utils.lua new file mode 100644 index 0000000..e69de29