diff --git a/init.lua b/init.lua index 25539adb..6ca13fea 100644 --- a/init.lua +++ b/init.lua @@ -251,12 +251,27 @@ require('lazy').setup({ border = "curved", winblend = 0, highlights = { - border = "Normal", - background = "Normal", + border = "Normal", + background = "Normal", }, }, } }, + { + 'windwp/nvim-autopairs', + opts = {}, + }, + { + 'Wansmer/treesj', + dependencies = { 'nvim-treesitter/nvim-treesitter' }, + opts = {}, + }, + { + 'nvim-treesitter/nvim-treesitter-context', + }, + { + 'mg979/vim-visual-multi', + }, -- NOTE: Next Step on Your Neovim Journey: Add/Configure additional "plugins" for kickstart -- These are some example plugins that I've included in the kickstart repository. @@ -539,15 +554,15 @@ require('which-key').register { ['s'] = { name = '[S]earch', _ = 'which_key_ignore' }, ['w'] = { name = '[W]orkspace', _ = 'which_key_ignore' }, --Toggle Term - ['t'] = { - name = "[T]erminal", - p = { "lua _PYTHON_TOGGLE()", "Python" }, -- Python Terminal - f = { "ToggleTerm direction=float", "Float" }, -- Floating Terminal + ['t'] = { + name = "[T]erminal", + p = { "lua _PYTHON_TOGGLE()", "Python" }, -- Python Terminal + f = { "ToggleTerm direction=float", "Float" }, -- Floating Terminal - -- Play with size according to your needs. - h = { "ToggleTerm size=10 direction=horizontal", "Horizontal" }, -- Horizontal Terminal, - v = { "ToggleTerm size=80 direction=vertical", "Vertical" }, -- Vertical Terminal - }, + -- Play with size according to your needs. + h = { "ToggleTerm size=10 direction=horizontal", "Horizontal" }, -- Horizontal Terminal, + v = { "ToggleTerm size=80 direction=vertical", "Vertical" }, -- Vertical Terminal + }, } -- mason-lspconfig requires that these setup functions are called in this order @@ -659,7 +674,7 @@ cmp.setup { -- configure toggleterm function _G.set_terminal_keymaps() - local opts = {noremap = true} + local opts = { noremap = true } vim.api.nvim_buf_set_keymap(0, 't', '', [[]], opts) vim.api.nvim_buf_set_keymap(0, 't', 'jk', [[]], opts) vim.api.nvim_buf_set_keymap(0, 't', '', [[h]], opts) @@ -667,13 +682,15 @@ function _G.set_terminal_keymaps() vim.api.nvim_buf_set_keymap(0, 't', '', [[k]], opts) vim.api.nvim_buf_set_keymap(0, 't', '', [[l]], opts) end + vim.cmd('autocmd! TermOpen term://* lua set_terminal_keymaps()') local Terminal = require("toggleterm.terminal").Terminal local python = Terminal:new({ cmd = "python3", hidden = true }) function _PYTHON_TOGGLE() - python:toggle() + python:toggle() end + -- The line beneath this is called `modeline`. See `:help modeline` -- vim: ts=2 sts=2 sw=2 et