Changed Keybindings of toggleterm to not block <Space> in edit and terminal mode
This commit is contained in:
parent
6043c54781
commit
5c1da5c7d2
5 changed files with 4 additions and 4 deletions
|
@ -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')
|
||||
|
|
1
nvim/lua/plugins/autoclose.lua
Normal file
1
nvim/lua/plugins/autoclose.lua
Normal file
|
@ -0,0 +1 @@
|
|||
require("autoclose").setup({})
|
|
@ -10,3 +10,4 @@ require('plugins.cmp')
|
|||
require('plugins.nvim-tree')
|
||||
require('plugins.toggleterm')
|
||||
require('plugins.dashboard')
|
||||
require('plugins.autoclose')
|
||||
|
|
|
@ -21,7 +21,7 @@ require('packer').startup(function(use)
|
|||
|
||||
use 'xiyaowong/nvim-transparent'
|
||||
|
||||
|
||||
use 'm4xshen/autoclose.nvim'
|
||||
|
||||
use { -- Autocompletion
|
||||
'hrsh7th/nvim-cmp',
|
||||
|
|
|
@ -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})
|
||||
|
|
Loading…
Reference in a new issue