feat(nvim): dotenv plugin

This commit is contained in:
thek4n 2024-01-01 22:05:53 +03:00
parent f34fdaf984
commit 20bc46167d
2 changed files with 13 additions and 3 deletions

View File

@ -0,0 +1,12 @@
return {
"ellisonleao/dotenv.nvim",
config = function()
require('dotenv').setup({
enable_on_load = true, -- will load your .env file upon loading a buffer
})
vim.api.nvim_create_autocmd("BufEnter", {
pattern = "*", callback = require('dotenv').autocmd
})
end
}

View File

@ -62,9 +62,7 @@ _compare_sandbox_to_home() {
} }
_merge_sandbox_to_home() { _merge_sandbox_to_home() {
set +e cp -RTnP "$SANDBOX_PATH" "$TARGET_PATH" || true
cp -RTnP "$SANDBOX_PATH" "$TARGET_PATH"
set -e
} }
__install_from_sandbox() { __install_from_sandbox() {