mirror of
https://github.com/js0ny/dotfiles.git
synced 2025-12-21 08:43:00 +00:00
Minor fix
This commit is contained in:
parent
c37d7bb33e
commit
866174e7e2
7 changed files with 21 additions and 19 deletions
|
|
@ -23,13 +23,14 @@ else
|
||||||
set -gx XDG_RUNTIME_DIR /run/user/(id -u)
|
set -gx XDG_RUNTIME_DIR /run/user/(id -u)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
set -gx GHCUP_USE_XDG_DIRS 1
|
||||||
|
|
||||||
set -gx PAGER "less -R"
|
set -gx PAGER "less -R"
|
||||||
set -gx EDITOR nvim
|
set -gx EDITOR nvim
|
||||||
set -gx VISUAL nvim
|
set -gx VISUAL nvim
|
||||||
|
|
||||||
# Minimal PATH for early commands
|
# Minimal PATH for early commands
|
||||||
for dir in /usr/local/bin /usr/bin /bin /usr/sbin /sbin "$HOME/.local/bin"
|
for dir in /usr/local/bin /usr/bin /bin /usr/sbin /sbin "$HOME/.local/bin" /opt/share/bin
|
||||||
if test -d "$dir" -a ! -L "$dir"
|
if test -d "$dir" -a ! -L "$dir"
|
||||||
fish_add_path "$dir"
|
fish_add_path "$dir"
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -80,6 +80,7 @@ return {
|
||||||
opts = {
|
opts = {
|
||||||
current_line_blame = true,
|
current_line_blame = true,
|
||||||
},
|
},
|
||||||
|
event = "BufReadPre",
|
||||||
keys = {
|
keys = {
|
||||||
{ "<leader>gb", "<cmd>Gitsigns blame<CR>", desc = "Blame file" },
|
{ "<leader>gb", "<cmd>Gitsigns blame<CR>", desc = "Blame file" },
|
||||||
{ "<leader>gd", "<cmd>Gitsigns diffthis<CR>", desc = "Diff file" },
|
{ "<leader>gd", "<cmd>Gitsigns diffthis<CR>", desc = "Diff file" },
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ return {
|
||||||
lazy = false,
|
lazy = false,
|
||||||
---@type snacks.Config
|
---@type snacks.Config
|
||||||
opts = {
|
opts = {
|
||||||
-- bigfile = { enabled = true },
|
bigfile = { enabled = true },
|
||||||
dashboard = {
|
dashboard = {
|
||||||
enabled = true,
|
enabled = true,
|
||||||
preset = {
|
preset = {
|
||||||
|
|
@ -32,22 +32,12 @@ return {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
-- explorer = {
|
-- explorer = {
|
||||||
-- -- TODO: Remap some keys in explorer
|
|
||||||
-- -- win = {
|
|
||||||
-- -- list = {
|
|
||||||
-- -- keys = {
|
|
||||||
-- -- ["l"] = "focus_input",
|
|
||||||
-- -- ["i"] = "confirm",
|
|
||||||
-- -- ["O"] = "explorer_open", -- Open with system default
|
|
||||||
-- -- },
|
|
||||||
-- -- },
|
|
||||||
-- -- },
|
|
||||||
-- },
|
-- },
|
||||||
indent = { enabled = true },
|
indent = { enabled = true },
|
||||||
-- input = { enabled = true },
|
-- input = { enabled = true },
|
||||||
-- notifier = { enabled = true },
|
notifier = { enabled = true },
|
||||||
-- quickfile = { enabled = true },
|
-- quickfile = { enabled = true },
|
||||||
-- scope = { enabled = true },
|
scope = { enabled = true },
|
||||||
-- scroll = { enabled = true },
|
-- scroll = { enabled = true },
|
||||||
statuscolumn = { enabled = true },
|
statuscolumn = { enabled = true },
|
||||||
-- words = { enabled = true },
|
-- words = { enabled = true },
|
||||||
|
|
|
||||||
|
|
@ -60,7 +60,7 @@ noremap gpr editor.action.referenceSearch.trigger
|
||||||
noremap ga editor.action.quickFix
|
noremap ga editor.action.quickFix
|
||||||
|
|
||||||
" Rename, or [c]hange [d]efinition
|
" Rename, or [c]hange [d]efinition
|
||||||
noremap cd editor.action.rename
|
nnoremap cd editor.action.rename
|
||||||
|
|
||||||
" Requires matchit by redguardtoo
|
" Requires matchit by redguardtoo
|
||||||
" nnoremap % extension.matchitJumpItems
|
" nnoremap % extension.matchitJumpItems
|
||||||
|
|
@ -74,8 +74,9 @@ vnoremap > editor.action.indentLines
|
||||||
" 分词版本的w和b,支持中文,需要插件
|
" 分词版本的w和b,支持中文,需要插件
|
||||||
" 为了保证递归解析,而不是打断,使用 `nmap` 而不是 `nnoremap`
|
" 为了保证递归解析,而不是打断,使用 `nmap` 而不是 `nnoremap`
|
||||||
" Comment if you don't use cjk or the plugin
|
" Comment if you don't use cjk or the plugin
|
||||||
nmap w cjkWordHandler.cursorWordEndRight
|
" This is buggy
|
||||||
nmap b cjkWordHandler.cursorWordStartLeft
|
"nmap w cjkWordHandler.cursorWordEndRight
|
||||||
|
"nmap b cjkWordHandler.cursorWordStartLeft
|
||||||
|
|
||||||
" <C-w> will be parsed by VSCode itself.
|
" <C-w> will be parsed by VSCode itself.
|
||||||
" noremap <C-w>n <C-w>j
|
" noremap <C-w>n <C-w>j
|
||||||
|
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
export FZF_DEFAULT_OPTS_FILE="$DOTFILES/common/fzfrc"
|
|
||||||
|
|
@ -33,8 +33,11 @@ export PAGER="less -R"
|
||||||
export EDITOR="nvim"
|
export EDITOR="nvim"
|
||||||
export VISUAL="nvim"
|
export VISUAL="nvim"
|
||||||
|
|
||||||
|
export GHCUP_USE_XDG_DIRS=1
|
||||||
|
export RUSTUP_HOME="$XDG_DATA_HOME"/rustup
|
||||||
|
|
||||||
# Minimal PATH for early commands
|
# Minimal PATH for early commands
|
||||||
export PATH="/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:$PATH"
|
export PATH="$HOME/.local/bin:/opt/share/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:$PATH"
|
||||||
|
|
||||||
if [ -d "/opt/homebrew/bin" ]; then # macOS
|
if [ -d "/opt/homebrew/bin" ]; then # macOS
|
||||||
export PATH="/opt/homebrew/bin:$PATH"
|
export PATH="/opt/homebrew/bin:$PATH"
|
||||||
|
|
@ -135,6 +138,10 @@ fi
|
||||||
if command -v emacs >/dev/null; then
|
if command -v emacs >/dev/null; then
|
||||||
export SPACEMACSDIR="$XDG_CONFIG_HOME"/spacemacs
|
export SPACEMACSDIR="$XDG_CONFIG_HOME"/spacemacs
|
||||||
fi
|
fi
|
||||||
|
# Fzf
|
||||||
|
if command -v fzf > /dev/null; then
|
||||||
|
export FZF_DEFAULT_OPTS_FILE="$HOME/.dotfiles/common/fzfrc"
|
||||||
|
fi
|
||||||
# tldr
|
# tldr
|
||||||
# Works only with C client (did not verify)
|
# Works only with C client (did not verify)
|
||||||
if command -v tldr >/dev/null; then
|
if command -v tldr >/dev/null; then
|
||||||
|
|
@ -162,3 +169,4 @@ fi
|
||||||
if command -v vcpkg >/dev/null; then
|
if command -v vcpkg >/dev/null; then
|
||||||
export VCPKG_ROOT="$XDG_DATA_HOME"/vcpkg
|
export VCPKG_ROOT="$XDG_DATA_HOME"/vcpkg
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -32,3 +32,5 @@ esac
|
||||||
for file in $DOTFILES/tools/zsh/mod/*.zsh; do
|
for file in $DOTFILES/tools/zsh/mod/*.zsh; do
|
||||||
source $file
|
source $file
|
||||||
done
|
done
|
||||||
|
|
||||||
|
[ -f "/home/js0ny/.local/share/ghcup/env" ] && . "/home/js0ny/.local/share/ghcup/env" # ghcup-env
|
||||||
Loading…
Add table
Add a link
Reference in a new issue