add mapping for leader g d to do a diff, and dont add terminals

This commit is contained in:
Paul Trowbridge 2023-04-25 15:02:27 -04:00
parent 8a56de017a
commit 6aef27028f
2 changed files with 16 additions and 12 deletions

View File

@ -73,3 +73,7 @@ vim.cmd('set shiftwidth=4')
vim.cmd('set expandtab')
vim.o.hidden = true
-- Git diffthis
vim.api.nvim_set_keymap('n', '<leader>gd', ':Gitsigns diffthis<CR>', {noremap = true, silent = true})

View File

@ -329,19 +329,19 @@ M.nvterm = {
},
-- new
["<leader>h"] = {
function()
require("nvterm.terminal").new "horizontal"
end,
"new horizontal term",
},
--["<leader>h"] = {
-- function()
-- require("nvterm.terminal").new "horizontal"
-- end,
-- "new horizontal term",
--},
["<leader>v"] = {
function()
require("nvterm.terminal").new "vertical"
end,
"new vertical term",
},
--["<leader>v"] = {
-- function()
-- require("nvterm.terminal").new "vertical"
-- end,
-- "new vertical term",
--},
},
}