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"] = { ["core.norg.dirman"] = {
config = { config = {
workspaces = { workspaces = {
work = "~/work/notes", work = "~/work",
personal = "~/notes", 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 = { n = {
name = "+neorg", name = "+neorg",
n = { "<cmd>Neorg<cr>", "Open 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" }, j = { "<cmd>Neorg journal<cr>", "Open Neorg Journal" },
w = { w = {
function() 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 MOZ_USE_XINPUT2="1" # Mozilla smooth scrolling/touchpads.
export AWT_TOOLKIT="MToolkit wmname LG3D" #May have to install wmname export AWT_TOOLKIT="MToolkit wmname LG3D" #May have to install wmname
export _JAVA_AWT_WM_NONREPARENTING=1 # Fix for Java applications in dwm 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: # This is the list for lf icons:
export LF_ICONS="di=:\ export LF_ICONS="di=:\

View File

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