Browse Source

add: remap to escape terminal

master
Tovi Jaeschke-Rogers 1 month ago
parent
commit
6619e4fcdf
2 changed files with 4 additions and 1 deletions
  1. +2
    -0
      .config/nvim/lua/tovi/core/remaps.lua
  2. +2
    -1
      .config/nvim/lua/tovi/plugins/fugitive.lua

+ 2
- 0
.config/nvim/lua/tovi/core/remaps.lua View File

@ -66,3 +66,5 @@ vim.keymap.set(
[[:%s/\<<C-r><C-w>\>/<C-r><C-w>/gI<Left><Left><Left>]],
{ desc = "Search and replace for word under cursor" }
)
vim.keymap.set('t', '<C-space>', "<C-\\><C-n>",{silent = true})

+ 2
- 1
.config/nvim/lua/tovi/plugins/fugitive.lua View File

@ -42,7 +42,8 @@ return {
if (startLine == 0 or endLine == 0)
then
vim.notify('Error getting start or end line', vim.log.levels.ERROR)
vim.notify(vim.inspect(vim.fn.getpos("'<")) .. " to " .. vim.inspect(vim.fn.getpos("'>")))
-- vim.notify('Error getting start or end line', vim.log.levels.ERROR)
return
end


Loading…
Cancel
Save