Add a hook to load project specific environment
This commit is contained in:
parent
8b65dfd176
commit
3175839954
@ -67,7 +67,7 @@ require'packer'.startup(function()
|
|||||||
}
|
}
|
||||||
|
|
||||||
-- Theme.
|
-- Theme.
|
||||||
use 'qaptoR-nvim/chocolatier.nvim'
|
use 'sainnhe/sonokai'
|
||||||
use {
|
use {
|
||||||
'nvim-lualine/lualine.nvim',
|
'nvim-lualine/lualine.nvim',
|
||||||
requires = {'nvim-tree/nvim-web-devicons'} -- optional, for status line icons
|
requires = {'nvim-tree/nvim-web-devicons'} -- optional, for status line icons
|
||||||
@ -100,7 +100,7 @@ require'lspserver'
|
|||||||
--
|
--
|
||||||
-- Theme
|
-- Theme
|
||||||
--
|
--
|
||||||
vim.cmd('colorscheme chocolatier')
|
vim.cmd('colorscheme sonokai')
|
||||||
vim.opt.termguicolors = true
|
vim.opt.termguicolors = true
|
||||||
|
|
||||||
-- Mappings.
|
-- Mappings.
|
||||||
|
@ -102,7 +102,7 @@ vim.api.nvim_set_keymap('n', '<leader>n', ':NvimTreeFindFile<CR>', { noremap = t
|
|||||||
--
|
--
|
||||||
require('lualine').setup {
|
require('lualine').setup {
|
||||||
options = {
|
options = {
|
||||||
theme = 'codedark'
|
theme = 'sonokai'
|
||||||
},
|
},
|
||||||
extensions = {'quickfix', 'nvim-tree', 'fugitive'},
|
extensions = {'quickfix', 'nvim-tree', 'fugitive'},
|
||||||
sections = {
|
sections = {
|
||||||
@ -194,3 +194,8 @@ require'nvim-treesitter.configs'.setup {
|
|||||||
additional_vim_regex_highlighting = true
|
additional_vim_regex_highlighting = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
--
|
||||||
|
-- sonokai
|
||||||
|
--
|
||||||
|
vim.g.sonokai_style = "shusia"
|
||||||
|
7
.yashrc
7
.yashrc
@ -19,5 +19,12 @@ alias rdpwin='xfreerdp /f /sound /v:192.168.0.4 /u:belka@caraus.de'
|
|||||||
command -v rbenv >/dev/null 2>&1 && eval "$(rbenv init -)"
|
command -v rbenv >/dev/null 2>&1 && eval "$(rbenv init -)"
|
||||||
|
|
||||||
command -v fastfetch >/dev/null 2>&1 && fastfetch
|
command -v fastfetch >/dev/null 2>&1 && fastfetch
|
||||||
|
echo $YASH_AFTER_CD
|
||||||
|
|
||||||
|
read_project_env() {
|
||||||
|
test -x .env.sh && . .env.sh
|
||||||
|
}
|
||||||
|
read_project_env
|
||||||
|
|
||||||
|
YASH_AFTER_CD=read_project_env
|
||||||
# vim: set ft=sh:
|
# vim: set ft=sh:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user