From ae0acd6d5ed4c4c4b9c77e5cc8577360d6e6c279 Mon Sep 17 00:00:00 2001 From: Hau Nguyen Date: Tue, 28 Feb 2023 10:34:59 +0700 Subject: [PATCH] chore(config): keymap nvim --- data/nvim/init.lua | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/data/nvim/init.lua b/data/nvim/init.lua index dc91b34..552d5cc 100644 --- a/data/nvim/init.lua +++ b/data/nvim/init.lua @@ -41,6 +41,7 @@ vim.keymap.set("n", "r", ":NvimTreeRefresh") vim.keymap.set("n", "n", ":NvimTreeFindFile") vim.keymap.set("n", "f", ":Neoformat") vim.keymap.set("n", "gf", ":GoFillStruct:w") +vim.keymap.set("n", "", ":GoRename") -- Use vim-go vim.g.go_gopls_gofumpt = 1 @@ -51,9 +52,11 @@ vim.g.copilot_filetypes = { ["*"] = false, go = true, json = true, + make = true, proto = true, python = true, yaml = true, + lua = true, } -- Use fzf @@ -118,8 +121,8 @@ require("packer").startup(function() -- https://github.com/junegunn/fzf.vim use("junegunn/fzf.vim") - -- https://github.com/tpope/vim-surround - use("tpope/vim-surround") + -- https://github.com/RRethy/vim-illuminate + use("RRethy/vim-illuminate") -- Colorschemes -- https://github.com/cocopon/iceberg.vim