From a3cb5357bcd7e8ded23e88e139e9acf819f428cf Mon Sep 17 00:00:00 2001 From: Daylin Morgan Date: Fri, 15 Apr 2022 08:40:14 -0500 Subject: [PATCH] updates to path and lvim --- home/dot_zshrc | 2 +- home/private_dot_config/lvim/config.lua | 6 +++++- system/env.sh | 6 ++++++ system/function.sh | 3 --- system/path.sh | 5 ++++- 5 files changed, 16 insertions(+), 6 deletions(-) diff --git a/home/dot_zshrc b/home/dot_zshrc index 7951336..2084b2a 100644 --- a/home/dot_zshrc +++ b/home/dot_zshrc @@ -13,7 +13,7 @@ fi # 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 [ -f "$DOTFILE" ] && . "$DOTFILE" diff --git a/home/private_dot_config/lvim/config.lua b/home/private_dot_config/lvim/config.lua index 476dc04..8f815df 100644 --- a/home/private_dot_config/lvim/config.lua +++ b/home/private_dot_config/lvim/config.lua @@ -3,7 +3,7 @@ require("keybindings") -- general 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 lvim.builtin.notify.active = true @@ -35,8 +35,12 @@ lvim.colorscheme = "dracula" -- settings local opt = vim.opt opt.timeoutlen = 200 + lvim.autocommands.custom_groups = { -- On entering insert mode in any file, scroll the window so the cursor line is centered {"InsertEnter", "*", ":normal zz"}, + -- Auto disbale spell checking on buffer open + {"BufNewFile,BufReadPost,FilterReadPost,FileReadPost","*",":set nospell"}, } + diff --git a/system/env.sh b/system/env.sh index 4050aab..2616187 100644 --- a/system/env.sh +++ b/system/env.sh @@ -77,3 +77,9 @@ export ZSH_DOTENV_DISALLOWED_LIST=$HOME/.cache/dotenv-disallowed.list # mamba export MAMBA_NO_BANNER=1 + +# shiv +if is-executable shiv;then + export SHIV_ROOT=$HOME/.local/share/shiv +fi + diff --git a/system/function.sh b/system/function.sh index 6db722f..70ed238 100644 --- a/system/function.sh +++ b/system/function.sh @@ -9,9 +9,6 @@ function cl() { ls -F --color=auto } -prepend-path() { - [ -d $1 ] && PATH="$1:$PATH" -} #delete and reclone remote repo reclone() { diff --git a/system/path.sh b/system/path.sh index d646694..fa66435 100644 --- a/system/path.sh +++ b/system/path.sh @@ -1,10 +1,13 @@ # Start with system 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) # Prepend new items to path (if directory exists) - prepend-path "/bin" prepend-path "/usr/bin" prepend-path "/usr/local/bin"