chore: better keymap fzf vim

main
sudo pacman -Syu 2023-06-12 14:04:24 +07:00
parent bb7bf62cd0
commit 2149589e0a
1 changed files with 5 additions and 2 deletions

View File

@ -42,8 +42,8 @@ vim.keymap.set("n", ";", "<leader>", { remap = true })
vim.keymap.set("n", "q", ":q<CR>")
-- Keymap for plugin
vim.keymap.set("n", "<leader>f", ":FZF<CR>")
vim.keymap.set("n", "<leader>rg", ":Rg<CR>")
vim.keymap.set("n", "<leader>f", ":FZFFiles<CR>")
vim.keymap.set("n", "<leader>rg", ":FZFRg<CR>")
vim.keymap.set("n", "<C-n>", ":NvimTreeToggle<CR>")
vim.keymap.set("n", "<leader>n", ":NvimTreeFindFile<CR>")
vim.keymap.set("n", "<leader>z", ":ZenMode<CR>")
@ -59,6 +59,9 @@ vim.keymap.set("n", "<leader>gdd", ":GoDeclsDir<CR>")
-- Use fzf
vim.opt.rtp:append({ "~/.fzf" })
-- Use plugin fzf.vim
vim.g.fzf_command_prefix = "FZF"
-- Use plugin nvim-tree.lua
vim.g.loaded_netrw = 1
vim.g.loaded_netrwPlugin = 1