diff --git a/neovim/.config/nvim/lua/handling.lua b/neovim/.config/nvim/lua/handling.lua index 00bbc84..7d01bb0 100644 --- a/neovim/.config/nvim/lua/handling.lua +++ b/neovim/.config/nvim/lua/handling.lua @@ -1,3 +1,9 @@ require('leap').set_default_keymaps() require('litee.lib').setup() require('litee.gh').setup() + +require("toggleterm").setup{ + size = 60, + direction = 'vertical', +} + diff --git a/neovim/.config/nvim/lua/keybindings.lua b/neovim/.config/nvim/lua/keybindings.lua index db7cd8a..a1dc68e 100644 --- a/neovim/.config/nvim/lua/keybindings.lua +++ b/neovim/.config/nvim/lua/keybindings.lua @@ -81,11 +81,22 @@ vim.keymap.set('n', '', '', { noremap = true, silent = true }) vim.keymap.set('n', '', '', { noremap = true, silent = true }) vim.keymap.set('n', '', '', { noremap = true, silent = true }) -vim.keymap.set("n", "", "TroubleToggle document_diagnostics", +vim.keymap.set("n", "", "TroubleToggle document_diagnostics", {silent = true, noremap = true} ) -vim.keymap.set('n', '', "lua require('github-notifications.menu').notifications()", { noremap = true, silent = true }) + +--TERMINAL BINDINGS +vim.api.nvim_set_keymap('n', '', "ToggleTerm", { noremap = true, silent = true }) +vim.api.nvim_set_keymap('n', '', "ToggleTermToggleAll", { noremap = true, silent = true }) +vim.api.nvim_set_keymap('t', '', "ToggleTermToggleAll", { noremap = true, silent = true }) +vim.keymap.set('t', '', "", + { noremap = true, silent = true } +) +vim.api.nvim_set_keymap('t', '', "wincmd h", { noremap = true, silent = true }) +vim.api.nvim_set_keymap('t', '', "wincmd j", { noremap = true, silent = true }) +vim.api.nvim_set_keymap('t', '', "wincmd k", { noremap = true, silent = true }) +vim.api.nvim_set_keymap('t', '', "wincmd l", { noremap = true, silent = true }) -- WHICH KEY local wk = require("which-key") diff --git a/neovim/.config/nvim/lua/plugins.lua b/neovim/.config/nvim/lua/plugins.lua index 401e008..40550ae 100644 --- a/neovim/.config/nvim/lua/plugins.lua +++ b/neovim/.config/nvim/lua/plugins.lua @@ -20,15 +20,7 @@ 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 { 'nvim-telescope/telescope.nvim', tag = '0.1.0', @@ -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' diff --git a/neovim/.config/nvim/lua/visuals.lua b/neovim/.config/nvim/lua/visuals.lua index 3edaffa..4b2f0d3 100644 --- a/neovim/.config/nvim/lua/visuals.lua +++ b/neovim/.config/nvim/lua/visuals.lua @@ -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')