Changed Keybindings of toggleterm to not block <Space> in edit and terminal mode

This commit is contained in:
Nikurasu 2022-12-24 11:55:50 +01:00
parent 6043c54781
commit 5c1da5c7d2
5 changed files with 4 additions and 4 deletions

View file

@ -84,7 +84,6 @@ vim.keymap.set('n', ']d', vim.diagnostic.goto_next)
vim.keymap.set('n', '<leader>e', vim.diagnostic.open_float)
vim.keymap.set('n', '<leader>q', vim.diagnostic.setloclist)
local api = require("nvim-tree.api")
vim.keymap.set('n', '<leader>ft', api.tree.toggle)
require('plugins')

View file

@ -0,0 +1 @@
require("autoclose").setup({})

View file

@ -10,3 +10,4 @@ require('plugins.cmp')
require('plugins.nvim-tree')
require('plugins.toggleterm')
require('plugins.dashboard')
require('plugins.autoclose')

View file

@ -21,7 +21,7 @@ require('packer').startup(function(use)
use 'xiyaowong/nvim-transparent'
use 'm4xshen/autoclose.nvim'
use { -- Autocompletion
'hrsh7th/nvim-cmp',

View file

@ -1,5 +1,4 @@
require("toggleterm").setup({
open_mapping = [[<leader>tt]],
direction = 'horizontal'
})
@ -23,4 +22,4 @@ function _LAZYGIT_TOGGLE()
end
vim.keymap.set('n', '<leader>tg', _LAZYGIT_TOGGLE)
vim.keymap.set('n', '<leader>tt', '<Cmd>ToggleTerm<Cr>', {silent = true})