New keymap to use fugitive more easily
This commit is contained in:
parent
6931f2f02c
commit
8efb24937b
|
@ -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,
|
||||
},
|
||||
}
|
||||
|
|
|
@ -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})
|
||||
|
|
|
@ -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>')
|
||||
|
|
Loading…
Reference in a new issue