From cc6a209d8d4d5dde416ceb253f799131ddd8eb4a Mon Sep 17 00:00:00 2001 From: Matei Adriel Date: Wed, 24 Aug 2022 14:21:21 +0300 Subject: [PATCH] Added custom keybind for neogit! --- dotfiles/neovim/lua/my/plugins/init.lua | 3 +-- dotfiles/neovim/lua/my/plugins/neogit.lua | 11 +++++++++++ 2 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 dotfiles/neovim/lua/my/plugins/neogit.lua diff --git a/dotfiles/neovim/lua/my/plugins/init.lua b/dotfiles/neovim/lua/my/plugins/init.lua index d47a1a8..cd97c0f 100644 --- a/dotfiles/neovim/lua/my/plugins/init.lua +++ b/dotfiles/neovim/lua/my/plugins/init.lua @@ -4,7 +4,6 @@ local M = {} function M.setup() require('nvim-autopairs').setup() require "gitlinker".setup() - require('neogit').setup() vscode.unless(function() @@ -21,8 +20,8 @@ function M.setup() require("my.plugins.vimux").setup() end) - require("my.plugins.vim-tmux-navigator").setup() + require("my.plugins.neogit").setup() require("my.plugins.comment").setup() require("my.plugins.telescope").setup() diff --git a/dotfiles/neovim/lua/my/plugins/neogit.lua b/dotfiles/neovim/lua/my/plugins/neogit.lua new file mode 100644 index 0000000..b3c6811 --- /dev/null +++ b/dotfiles/neovim/lua/my/plugins/neogit.lua @@ -0,0 +1,11 @@ +local M = {} + +function M.setup() + local neogit = require("neogit") + + neogit.setup() + + vim.keymap.set("n", "", neogit.open) +end + +return M