more updates

This commit is contained in:
Solomon Laing 2023-01-17 08:29:40 +10:30
parent 46d5ac6d62
commit 6374995a04
4 changed files with 27 additions and 33 deletions

View File

@ -11,8 +11,9 @@ return {
["core.norg.dirman"] = {
config = {
workspaces = {
work = "~/work/notes",
work = "~/work",
personal = "~/notes",
journal = "~/notes/journal/",
},
},
},
@ -28,13 +29,4 @@ return {
},
},
},
-- keys = {
-- {
-- "<leader>nw",
-- function()
-- require("lazyvim.utils.neorg").workspace_switcher()
-- end,
-- desc = "Workspace",
-- },
-- },
}

View File

@ -78,6 +78,8 @@ return {
n = {
name = "+neorg",
n = { "<cmd>Neorg<cr>", "Open Neorg" },
c = { "<cmd>Neorg toggle-concealer<cr>", "Toggle Concealer" },
t = { "<cmd>Neorg tangle current-file<cr>", "Tangle Current File" },
j = { "<cmd>Neorg journal<cr>", "Open Neorg Journal" },
w = {
function()

View File

@ -60,7 +60,7 @@ export QT_QPA_PLATFORMTHEME="gtk2" # Have QT use gtk2 theme.
export MOZ_USE_XINPUT2="1" # Mozilla smooth scrolling/touchpads.
export AWT_TOOLKIT="MToolkit wmname LG3D" #May have to install wmname
export _JAVA_AWT_WM_NONREPARENTING=1 # Fix for Java applications in dwm
export ZK_NOTEBOOK_DIR="$HOME/notes"
export ZK_NOTEBOOK_DIR="$HOME/notes/zk"
# This is the list for lf icons:
export LF_ICONS="di=:\

View File

@ -30,10 +30,10 @@ ZSH_THEME="inkletblotsh"
# "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd"
# or set a custom format using the strftime function format specifications,
# see 'man strftime' for details.
HIST_STAMPS="yyyy-mm-dd"
HIST_STAMPS="yyyy-mm-dd"
# Would you like to use another custom folder than $ZSH/custom?
ZSH_CUSTOM=/home/solomon/.config/zsh
ZSH_CUSTOM=/home/solomon/.config/zsh
# Which plugins would you like to load?
# Standard plugins can be found in $ZSH/plugins/
@ -41,21 +41,21 @@ ZSH_THEME="inkletblotsh"
# Example format: plugins=(rails git textmate ruby lighthouse)
# Add wisely, as too many plugins slow down shell startup.
plugins=(git
battery
git-flow
git-prompt vi-mode)
battery
git-flow
git-prompt vi-mode)
source $ZSH/oh-my-zsh.sh
# You may need to manually set your language environment
export LANG=en_US.UTF-8
export LANG=en_US.UTF-8
# Preferred editor for local and remote sessions
if [[ -n $SSH_CONNECTION ]]; then
export EDITOR='nano'
else
export EDITOR='nvim'
fi
if [[ -n $SSH_CONNECTION ]]; then
export EDITOR='nano'
else
export EDITOR='nvim'
fi
HISTSIZE=1000000
SAVEHIST=1000000
@ -78,13 +78,13 @@ bindkey -v '^?' backward-delete-char
# use lf to switch directories and bind it to ctrl-l
lfcd() {
tmp="$(mktemp -uq)"
trap 'rm -f $tmp >/dev/null 2>&1' HUP INT QUIT TERM PWR EXIT
lf -last-dir-path="$tmp" "$@"
if [ -f "$tmp" ]; then
dir="$(cat "$tmp")"
[ -d "$dir" ] && [ "$dir" != "$(pwd)" ] && cd "$dir"
fi
tmp="$(mktemp -uq)"
trap 'rm -f $tmp >/dev/null 2>&1' HUP INT QUIT TERM PWR EXIT
lf -last-dir-path="$tmp" "$@"
if [ -f "$tmp" ]; then
dir="$(cat "$tmp")"
[ -d "$dir" ] && [ "$dir" != "$(pwd)" ] && cd "$dir"
fi
}
bindkey -s '^o' '^ulfcd\n'
@ -92,15 +92,15 @@ bindkey -s '^t' '^utms\n'
bindkey -s '^n' '^uzk edit --interactive --sort modified-\n'
if [ -f /etc/hostname ]; then
HOST=$(cat /etc/hostname)
HOST=$(cat /etc/hostname)
else
HOST=$(hostname)
HOST=$(hostname)
fi
if [ "$HOST" = "holocene" ] ; then
source /usr/share/zsh/site-functions/zsh-syntax-highlighting.zsh
source /usr/share/zsh/site-functions/zsh-syntax-highlighting.zsh
else
source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
fi
# Dracula Theme (for zsh-syntax-highlighting)