chore: more nvim keymap

main
sudo pacman -Syu 2023-03-06 11:45:32 +07:00
parent bac6d58114
commit 32422dd25b
1 changed files with 2 additions and 1 deletions

View File

@ -36,13 +36,14 @@ vim.keymap.set("i", "<C-c>", "<Esc>")
-- Keymap
vim.keymap.set("n", "<leader>s", ":w<CR>")
vim.keymap.set("n", "<leader>q", ":FZF<CR>")
vim.keymap.set("n", "<leader>rg", ":Rg<CR>")
vim.keymap.set("n", "<C-n>", ":NvimTreeToggle<CR>")
vim.keymap.set("n", "<leader>r", ":NvimTreeRefresh<CR>")
vim.keymap.set("n", "<leader>n", ":NvimTreeFindFile<CR>")
vim.keymap.set("n", "<leader>f", ":Neoformat<CR>")
vim.keymap.set("n", "<F2>", ":GoRename<CR>")
vim.keymap.set("n", "<leader>gf", ":GoFillStruct<CR>:w<CR>")
vim.keymap.set("n", "<leader>t", ":GoAlternate<CR>")
vim.keymap.set("n", "<leader>gt", ":GoAlternate<CR>")
-- Use vim-go
vim.g.go_gopls_gofumpt = 1