feat: add solarized dark theme
This commit is contained in:
parent
f1bc810412
commit
99aba01d79
3 changed files with 14 additions and 0 deletions
1
init.lua
1
init.lua
|
@ -1 +1,2 @@
|
||||||
require('plugins')
|
require('plugins')
|
||||||
|
require('themes')
|
||||||
|
|
|
@ -21,6 +21,9 @@ return require('packer').startup(function(use)
|
||||||
-- Let Packer manage itself
|
-- Let Packer manage itself
|
||||||
use('wbthomason/packer.nvim')
|
use('wbthomason/packer.nvim')
|
||||||
|
|
||||||
|
-- Themes
|
||||||
|
use('altercation/vim-colors-solarized')
|
||||||
|
|
||||||
-- git commands
|
-- git commands
|
||||||
use('tpope/vim-fugitive')
|
use('tpope/vim-fugitive')
|
||||||
|
|
||||||
|
|
10
lua/themes.lua
Normal file
10
lua/themes.lua
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
-- source file everytime it changes
|
||||||
|
vim.cmd([[
|
||||||
|
augroup user_theme_config
|
||||||
|
autocmd!
|
||||||
|
autocmd BufWritePost themes.lua source <afile>
|
||||||
|
augroup end
|
||||||
|
]])
|
||||||
|
|
||||||
|
vim.cmd [[colorscheme solarized]]
|
||||||
|
vim.opt.background = 'dark'
|
Loading…
Reference in a new issue