New keymap to use fugitive more easily

This commit is contained in:
Evie Litherland-Smith 2022-11-01 16:22:40 +00:00
parent 6931f2f02c
commit 8efb24937b
3 changed files with 8 additions and 3 deletions

View file

@ -1,5 +1,9 @@
vim.g.loaded = 1
vim.g.loaded_netrwPlugin = 1
require('nvim-tree').setup{
filters = { custom = { "^.git$" } }
filters = { custom = { "^.git$" } },
renderer = {
group_empty = true,
highlight_git = true,
},
}

View file

@ -27,5 +27,5 @@ function _ranger_toggle()
ranger:toggle()
end
vim.api.nvim_set_keymap("n", "<leader>g", "<cmd>lua _lazygit_toggle()<CR>", {noremap = true, silent = true})
vim.api.nvim_set_keymap("n", "<leader>r", "<cmd>lua _ranger_toggle()<CR>", {noremap = true, silent = true})
vim.api.nvim_set_keymap("n", "<leader>tg", "<cmd>lua _lazygit_toggle()<CR>", {noremap = true, silent = true})
vim.api.nvim_set_keymap("n", "<leader>tr", "<cmd>lua _ranger_toggle()<CR>", {noremap = true, silent = true})

View file

@ -15,6 +15,7 @@ vim.g.mapleader=' '
imap('jk','<Esc>')
nmap('<leader>a', ':Ack!<Space>')
nmap('<leader>sr', ':SnipRun<cr>')
nmap('<leader>g', ':G<cr>')
-- Telescope
nmap('<leader>;', '<cmd>Telescope builtin<cr>')