Remove ranger
This commit is contained in:
parent
d5af2f1fb0
commit
93bc5e2aac
6
init.lua
6
init.lua
|
@ -29,18 +29,12 @@ require('toggleterm').setup{
|
|||
|
||||
local Terminal = require('toggleterm.terminal').Terminal
|
||||
local lazygit = Terminal:new({ cmd = "lazygit", hidden = true, direction = 'float' })
|
||||
local ranger = Terminal:new({ cmd = "ranger", hidden = true, direction = 'float' })
|
||||
|
||||
function _lazygit_toggle()
|
||||
lazygit:toggle()
|
||||
end
|
||||
|
||||
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})
|
||||
|
||||
-- load telescope integrations
|
||||
require('telescope').load_extension('aerial')
|
||||
|
|
Loading…
Reference in a new issue