Add a hook to load project specific environment

This commit is contained in:
Eugen Wissner 2025-02-28 15:23:42 +01:00
parent 8b65dfd176
commit 3175839954
Signed by: belka
GPG Key ID: A27FDC1E8EE902C0
3 changed files with 15 additions and 3 deletions

View File

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

View File

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

View File

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