update
This commit is contained in:
parent
3b915900ee
commit
4e52099102
4 changed files with 16 additions and 8 deletions
6
init.lua
6
init.lua
|
|
@ -154,7 +154,11 @@ require("lazy").setup({
|
|||
},
|
||||
{
|
||||
"nvim-tree/nvim-tree.lua",
|
||||
opts = {},
|
||||
opts = {
|
||||
filters = {
|
||||
custom = { "\\.uid$" }
|
||||
}
|
||||
},
|
||||
init = function()
|
||||
vim.keymap.set('n', '<leader>tt', require("nvim-tree.api").tree.toggle)
|
||||
vim.keymap.set('n', '<leader>tf', require("nvim-tree.api").tree.find_file)
|
||||
|
|
|
|||
6
nvr_git
6
nvr_git
|
|
@ -9,12 +9,12 @@ nvr_git () {
|
|||
|
||||
if [ -n "$main_module_repo_path" ]; then
|
||||
local servername=/tmp/nvr$(echo $main_module_repo_path | tr "/" "_")
|
||||
nvr -s --servername $servername "$@"
|
||||
exec -a nvim nvr -s --servername $servername "$@"
|
||||
else
|
||||
if test -f /usr/bin/nvim; then
|
||||
/usr/bin/nvim "$@"
|
||||
exec -a nvim /usr/bin/nvim "$@"
|
||||
else
|
||||
/usr/local/bin/nvim "$@"
|
||||
exec -a nvim /usr/local/bin/nvim "$@"
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
|
|
|||
|
|
@ -9,5 +9,7 @@
|
|||
"window.confirmBeforeClose": "always",
|
||||
"workbench.iconTheme": "simple-icons",
|
||||
"editor.formatOnSave": true,
|
||||
"workbench.colorTheme": "Kanagawa Wave"
|
||||
"workbench.colorTheme": "Gruvbox Dark Hard",
|
||||
"chat.disableAIFeatures": true,
|
||||
"git.autofetch": true,
|
||||
}
|
||||
|
|
@ -11,6 +11,8 @@ set -s set-clipboard on
|
|||
set -sg escape-time 5
|
||||
set -sa terminal-features ',xterm-256color:RGB'
|
||||
set -g destroy-unattached on
|
||||
set -g automatic-rename on
|
||||
set -g automatic-rename-format '#{b:pane_current_path} #{pane_current_command}'
|
||||
|
||||
set -g @minimal-tmux-expanded-icon " "
|
||||
set -g @minimal-tmux-show-expanded-icons-for-all-tabs true
|
||||
|
|
@ -18,9 +20,9 @@ set -g @minimal-tmux-status-right-extra ""
|
|||
if-shell 'command -v termux-battery-status' {
|
||||
set -ag @minimal-tmux-status-right-extra "#[fg=color150]#[bg=color150,fg=black]BAT: #(termux-battery-status | jq -r \".level\")#[fg=color150,bg=default]#[bg=default] "
|
||||
}
|
||||
if-shell 'command -v playerctl' {
|
||||
set -ag @minimal-tmux-status-right-extra "#[fg=color150]#[bg=color150,fg=black]#(playerctl metadata --format '{{artist}} - {{title}}' || echo 'No player')#[fg=color150,bg=default]#[bg=default] "
|
||||
}
|
||||
# if-shell 'command -v playerctl' {
|
||||
# set -ag @minimal-tmux-status-right-extra "#[fg=color150]#[bg=color150,fg=black]#(playerctl metadata --format '{{artist}} - {{title}}' || echo 'No player')#[fg=color150,bg=default]#[bg=default] "
|
||||
# }
|
||||
if-shell 'upower -i /org/freedesktop/UPower/devices/battery_BAT0 | grep -q "energy-rate"' {
|
||||
set -ag @minimal-tmux-status-right-extra "#[fg=color150]#[bg=color150,fg=black]Power:#(upower -i /org/freedesktop/UPower/devices/battery_BAT0 | grep "energy-rate" | awk '{print $2}')W#[fg=color150,bg=default]#[bg=default] "
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue