Start with theme

This commit is contained in:
Fabian Schmidt 2021-02-24 18:33:43 +01:00
commit 8e7a8e3680
5 changed files with 71 additions and 0 deletions

6
init.lua Normal file
View File

@ -0,0 +1,6 @@
-- init.lua
require('lua/plugins')
require('lua/settings')
require('lua/maps')
require('lua/utils')

0
lua/maps.lua Normal file
View File

14
lua/plugins.lua Normal file
View File

@ -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'

51
lua/settings.lua Normal file
View File

@ -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()

0
lua/utils.lua Normal file
View File