Start with theme
This commit is contained in:
commit
8e7a8e3680
6
init.lua
Normal file
6
init.lua
Normal 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
0
lua/maps.lua
Normal file
14
lua/plugins.lua
Normal file
14
lua/plugins.lua
Normal 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
51
lua/settings.lua
Normal 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
0
lua/utils.lua
Normal file
Loading…
Reference in New Issue
Block a user