Toggleterm
This commit is contained in:
parent
292483234d
commit
652106e353
|
@ -1,3 +1,9 @@
|
|||
require('leap').set_default_keymaps()
|
||||
require('litee.lib').setup()
|
||||
require('litee.gh').setup()
|
||||
|
||||
require("toggleterm").setup{
|
||||
size = 60,
|
||||
direction = 'vertical',
|
||||
}
|
||||
|
||||
|
|
|
@ -81,11 +81,22 @@ vim.keymap.set('n', '<C-K>', '<C-W><C-K>', { noremap = true, silent = true })
|
|||
vim.keymap.set('n', '<C-L>', '<C-W><C-L>', { noremap = true, silent = true })
|
||||
vim.keymap.set('n', '<C-H>', '<C-W><C-H>', { noremap = true, silent = true })
|
||||
|
||||
vim.keymap.set("n", "<F12>", "<cmd>TroubleToggle document_diagnostics<cr>",
|
||||
vim.keymap.set("n", "<F5>", "<cmd>TroubleToggle document_diagnostics<cr>",
|
||||
{silent = true, noremap = true}
|
||||
)
|
||||
|
||||
vim.keymap.set('n', '<F5>', "<cmd>lua require('github-notifications.menu').notifications()<CR>", { noremap = true, silent = true })
|
||||
|
||||
--TERMINAL BINDINGS
|
||||
vim.api.nvim_set_keymap('n', '<F12>', "<cmd>ToggleTerm<CR>", { noremap = true, silent = true })
|
||||
vim.api.nvim_set_keymap('n', '<F36>', "<cmd>ToggleTermToggleAll<CR>", { noremap = true, silent = true })
|
||||
vim.api.nvim_set_keymap('t', '<F36>', "<cmd>ToggleTermToggleAll<CR>", { noremap = true, silent = true })
|
||||
vim.keymap.set('t', '<ESC>', "<C-\\><C-n>",
|
||||
{ noremap = true, silent = true }
|
||||
)
|
||||
vim.api.nvim_set_keymap('t', '<C-H>', "<cmd>wincmd h<CR>", { noremap = true, silent = true })
|
||||
vim.api.nvim_set_keymap('t', '<C-J>', "<cmd>wincmd j<CR>", { noremap = true, silent = true })
|
||||
vim.api.nvim_set_keymap('t', '<C-K>', "<cmd>wincmd k<CR>", { noremap = true, silent = true })
|
||||
vim.api.nvim_set_keymap('t', '<C-L>', "<cmd>wincmd l<CR>", { noremap = true, silent = true })
|
||||
|
||||
-- WHICH KEY
|
||||
local wk = require("which-key")
|
||||
|
|
|
@ -20,14 +20,6 @@ return require('packer').startup(function(use)
|
|||
}
|
||||
end
|
||||
}
|
||||
use {
|
||||
'rlch/github-notifications.nvim',
|
||||
config = [[require('config.github-notifications')]],
|
||||
requires = {
|
||||
'nvim-lua/plenary.nvim',
|
||||
'nvim-telescope/telescope.nvim',
|
||||
},
|
||||
}
|
||||
|
||||
-- Handling
|
||||
use {
|
||||
|
@ -49,6 +41,15 @@ return require('packer').startup(function(use)
|
|||
}
|
||||
end
|
||||
}
|
||||
use {
|
||||
"akinsho/toggleterm.nvim",
|
||||
config = function()
|
||||
require("toggleterm").setup{
|
||||
size = 20,
|
||||
direction = 'vertical',
|
||||
}
|
||||
end
|
||||
}
|
||||
|
||||
-- Completion
|
||||
use 'github/copilot.vim'
|
||||
|
|
|
@ -22,7 +22,7 @@ require('lualine').setup {
|
|||
},
|
||||
sections = {
|
||||
lualine_a = {'mode'},
|
||||
lualine_b = {'branch', 'diff', 'diagnostics', require('github-notifications').statusline_notification_count},
|
||||
lualine_b = {'branch', 'diff', 'diagnostics'},
|
||||
lualine_c = {'filename'},
|
||||
lualine_x = {'encoding', 'fileformat', 'filetype'},
|
||||
lualine_y = {'progress'},
|
||||
|
@ -41,4 +41,3 @@ require('lualine').setup {
|
|||
inactive_winbar = {},
|
||||
extensions = {}
|
||||
}
|
||||
require('telescope').load_extension('ghn')
|
||||
|
|
Loading…
Reference in New Issue