updates to path and lvim

This commit is contained in:
Daylin Morgan 2022-04-15 08:40:14 -05:00
parent 3ea2b94f5a
commit a3cb5357bc
5 changed files with 16 additions and 6 deletions

View file

@ -13,7 +13,7 @@ fi
# Make utilities available # Make utilities available
# PATH="$DOTFILES_DIR/bin:$PATH" export PATH="$DOTFILES_DIR/bin:$PATH"
for DOTFILE in "$DOTFILES_DIR"/system/{path,env,prompt,alias,function,conda,custom}.sh; do for DOTFILE in "$DOTFILES_DIR"/system/{path,env,prompt,alias,function,conda,custom}.sh; do
[ -f "$DOTFILE" ] && . "$DOTFILE" [ -f "$DOTFILE" ] && . "$DOTFILE"

View file

@ -3,7 +3,7 @@ require("keybindings")
-- general -- general
lvim.log.level = "warn" lvim.log.level = "warn"
lvim.format_on_save = true lvim.format_on_save = false
-- After changing plugin config exit and reopen LunarVim, Run :PackerInstall :PackerCompile -- After changing plugin config exit and reopen LunarVim, Run :PackerInstall :PackerCompile
lvim.builtin.notify.active = true lvim.builtin.notify.active = true
@ -35,8 +35,12 @@ lvim.colorscheme = "dracula"
-- settings -- settings
local opt = vim.opt local opt = vim.opt
opt.timeoutlen = 200 opt.timeoutlen = 200
lvim.autocommands.custom_groups = { lvim.autocommands.custom_groups = {
-- On entering insert mode in any file, scroll the window so the cursor line is centered -- On entering insert mode in any file, scroll the window so the cursor line is centered
{"InsertEnter", "*", ":normal zz"}, {"InsertEnter", "*", ":normal zz"},
-- Auto disbale spell checking on buffer open
{"BufNewFile,BufReadPost,FilterReadPost,FileReadPost","*",":set nospell"},
} }

View file

@ -77,3 +77,9 @@ export ZSH_DOTENV_DISALLOWED_LIST=$HOME/.cache/dotenv-disallowed.list
# mamba # mamba
export MAMBA_NO_BANNER=1 export MAMBA_NO_BANNER=1
# shiv
if is-executable shiv;then
export SHIV_ROOT=$HOME/.local/share/shiv
fi

View file

@ -9,9 +9,6 @@ function cl() {
ls -F --color=auto ls -F --color=auto
} }
prepend-path() {
[ -d $1 ] && PATH="$1:$PATH"
}
#delete and reclone remote repo #delete and reclone remote repo
reclone() { reclone() {

View file

@ -1,10 +1,13 @@
# Start with system path # Start with system path
# Retrieve it from getconf, otherwise it's just current $PATH # Retrieve it from getconf, otherwise it's just current $PATH
prepend-path() {
[ -d $1 ] && PATH="$1:$PATH"
}
is-executable getconf && PATH=$($(command -v getconf) PATH) is-executable getconf && PATH=$($(command -v getconf) PATH)
# Prepend new items to path (if directory exists) # Prepend new items to path (if directory exists)
prepend-path "/bin" prepend-path "/bin"
prepend-path "/usr/bin" prepend-path "/usr/bin"
prepend-path "/usr/local/bin" prepend-path "/usr/local/bin"