From f6b76fe898e8a967e2abda2f0894c33e65e065e0 Mon Sep 17 00:00:00 2001 From: Laily Date: Sun, 21 Mar 2021 10:51:54 +0800 Subject: [PATCH] fix: moditfy tmux git, nvim --- .gitignore | 1 + .tmux.conf | 6 +++--- git/.gitconfig | 4 ---- nvim/lua/nvimTree/lua.lua | 1 + 4 files changed, 5 insertions(+), 7 deletions(-) diff --git a/.gitignore b/.gitignore index 40834f1..e07b590 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ .SpaceVim.d/.netrwhist .SpaceVim.d/init.vim +.DS_Store diff --git a/.tmux.conf b/.tmux.conf index 1101953..2c79247 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -1,8 +1,8 @@ setw -g mode-keys vi -#unbind ^b +unbind ^b #set -g prefix 'C-a' -#set -g prefix ` -#bind-key ` send-prefix +set -g prefix ` +bind-key ` send-prefix bind r source-file ~/.tmux.conf \; display-message "Config reloaded" # 切分面板 diff --git a/git/.gitconfig b/git/.gitconfig index 3c0e637..2d94f0a 100644 --- a/git/.gitconfig +++ b/git/.gitconfig @@ -1,6 +1,5 @@ [user] name = Laily - email = i@laily.net [core] autocrlf = input quotepath = false @@ -17,13 +16,10 @@ bg = "!f() { git branch | grep $1; }; f" delbr = "!f(){ git branch -D `git branch | grep \"\b$1\"`; };f" cin = commit --amend --no-edit - [push] default = current [merge] tool = vimdiff -[init] - templatedir = $HOME/.dotfile/git/gittemplates diff --git a/nvim/lua/nvimTree/lua.lua b/nvim/lua/nvimTree/lua.lua index 1f9270c..7b67c4f 100644 --- a/nvim/lua/nvimTree/lua.lua +++ b/nvim/lua/nvimTree/lua.lua @@ -71,6 +71,7 @@ vim.g.nvim_tree_bindings = { [""] = get_lua_cb("preview"), ["I"] = get_lua_cb("toggle_ignored"), ["H"] = get_lua_cb("toggle_dotfiles"), + ["."] = get_lua_cb("toggle_dotfiles"), ["R"] = get_lua_cb("refresh"), ["n"] = get_lua_cb("create"), ["d"] = get_lua_cb("remove"),