From 0dae160e8e42ec561afe558a56a144f788b80be6 Mon Sep 17 00:00:00 2001 From: Hau Nguyen Date: Fri, 5 May 2023 22:58:26 +0700 Subject: [PATCH] chore: better neovim keymap --- data/nvim/init.lua | 7 +++---- data/zsh/extra-zshrc | 4 ++-- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/data/nvim/init.lua b/data/nvim/init.lua index 9529167..5175d70 100644 --- a/data/nvim/init.lua +++ b/data/nvim/init.lua @@ -37,17 +37,16 @@ vim.keymap.set("i", "", "") vim.keymap.set("n", ";", "", { remap = true }) -- Keymap for plugin -vim.keymap.set("n", "f", ":FZF") +vim.keymap.set("n", "ff", ":FZF") vim.keymap.set("n", "rg", ":Rg") vim.keymap.set("n", "", ":NvimTreeToggle") vim.keymap.set("n", "r", ":NvimTreeRefresh") vim.keymap.set("n", "n", ":NvimTreeFindFile") -vim.keymap.set("n", "fm", ":Neoformat") vim.keymap.set("n", "z", ":ZenMode") vim.keymap.set("n", "", ":GoRename") vim.keymap.set("n", "gf", ":GoFillStruct:w") -vim.keymap.set("n", "gt", ":GoAlternate") -vim.keymap.set("n", "gtt", ":GoTest") +vim.keymap.set("n", "gat", ":GoAlternate") +vim.keymap.set("n", "gt", ":GoTest") vim.keymap.set("n", "gr", ":GoReferrers") vim.keymap.set("n", "gcv", ":GoCoverage") vim.keymap.set("n", "gdd", ":GoDeclsDir") diff --git a/data/zsh/extra-zshrc b/data/zsh/extra-zshrc index e868fda..6988161 100644 --- a/data/zsh/extra-zshrc +++ b/data/zsh/extra-zshrc @@ -35,8 +35,8 @@ if command -v nvim &>/dev/null; then export EDITOR=nvim export VISUAL=nvim export GIT_EDITOR=nvim - alias vi="nvim" - alias vim="nvim" + alias vi="nvim" + alias vim="nvim" fi # go