Skip to content

Commit 366b712

Browse files
Added better brackets plugin and terminal
1 parent 13436bf commit 366b712

File tree

6 files changed

+59
-7
lines changed

6 files changed

+59
-7
lines changed

lazy-lock.json

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
"Comment.nvim": { "branch": "master", "commit": "0236521ea582747b58869cb72f70ccfa967d2e89" },
33
"LuaSnip": { "branch": "master", "commit": "be7be2ca7f55bb881a7ffc16b2efa5af034ab06b" },
44
"beacon.nvim": { "branch": "master", "commit": "a786c9a89b2c739c69f9500a2f70f2586c06ec27" },
5+
"betterTerm.nvim": { "branch": "main", "commit": "ffc3cd82a616061e0df93f3bc4c0aab32de75995" },
56
"catppuccin": { "branch": "main", "commit": "02bdd749931a5d739063562e57531c118e081882" },
7+
"cmake-tools.nvim": { "branch": "master", "commit": "a4cd0b3a2c8a166a54b36bc00579954426748959" },
68
"cmp-nvim-lsp": { "branch": "main", "commit": "5af77f54de1b16c34b23cba810150689a3a90312" },
79
"cmp-path": { "branch": "main", "commit": "91ff86cd9c29299a64f968ebb45846c485725f23" },
810
"cmp_luasnip": { "branch": "master", "commit": "05a9ab28b53f71d1aece421ef32fee2cb857a843" },
@@ -16,23 +18,26 @@
1618
"mason-lspconfig.nvim": { "branch": "main", "commit": "44509689b9bf3984d729cc264aacb31cb7f41668" },
1719
"mason-nvim-dap.nvim": { "branch": "main", "commit": "67210c0e775adec55de9826b038e8b62de554afc" },
1820
"mason.nvim": { "branch": "main", "commit": "751b1fcbf3d3b783fcf8d48865264a9bcd8f9b10" },
21+
"nabla.nvim": { "branch": "master", "commit": "27a6ea9ed7452bb9e0b19eb0942b5bcf7d051b2f" },
1922
"neodev.nvim": { "branch": "main", "commit": "ce9a2e8eaba5649b553529c5498acb43a6c317cd" },
2023
"neogen": { "branch": "main", "commit": "0daffcec249bf42275e322361fe55b89a05ff278" },
2124
"noice.nvim": { "branch": "main", "commit": "0cbe3f88d038320bdbda3c4c5c95f43a13c3aa12" },
2225
"nui.nvim": { "branch": "main", "commit": "cbd2668414331c10039278f558630ed19b93e69b" },
26+
"nvim-autopairs": { "branch": "master", "commit": "4f41e5940bc0443fdbe5f995e2a596847215cd2a" },
2327
"nvim-cmp": { "branch": "main", "commit": "ce16de5665c766f39c271705b17fff06f7bcb84f" },
2428
"nvim-dap": { "branch": "master", "commit": "405df1dcc2e395ab5173a9c3d00e03942c023074" },
2529
"nvim-dap-ui": { "branch": "master", "commit": "edfa93f60b189e5952c016eee262d0685d838450" },
26-
"nvim-lspconfig": { "branch": "master", "commit": "9619e53d3f99f0ca4ea3b88f5d97fce703131820" },
30+
"nvim-lspconfig": { "branch": "master", "commit": "e25c4cdecd3d58c0deccce0f372426c8c480bcce" },
2731
"nvim-nio": { "branch": "master", "commit": "5800f585def265d52f1d8848133217c800bcb25d" },
2832
"nvim-notify": { "branch": "master", "commit": "5371f4bfc1f6d3adf4fe9d62cd3a9d44356bfd15" },
2933
"nvim-tree.lua": { "branch": "master", "commit": "ddd1d6eb21c45433bdc65cc8015f2457998f2bf2" },
30-
"nvim-treesitter": { "branch": "master", "commit": "46b587eb38701c02360042fce284cc8ec2653c30" },
34+
"nvim-treesitter": { "branch": "master", "commit": "c16f66cca0c38b4e21371d8330b7f2ad6404f6dc" },
3135
"nvim-treesitter-textobjects": { "branch": "master", "commit": "2aa454e4037424c678a8ff033951a5be39e54b9c" },
32-
"nvim-web-devicons": { "branch": "master", "commit": "20921d33c605ba24c8d0b76b379a54a9c83ba170" },
33-
"obsidian.nvim": { "branch": "main", "commit": "6661806e211bc987d68e4f0b7c92eabfe797c2eb" },
36+
"nvim-web-devicons": { "branch": "master", "commit": "6e355632387a085f15a66ad68cf681c1d7374a04" },
37+
"obsidian.nvim": { "branch": "main", "commit": "9644aca08334bb3f6fbeeccacc9e4dbb5855577e" },
3438
"plenary.nvim": { "branch": "master", "commit": "8aad4396840be7fc42896e3011751b7609ca4119" },
3539
"rainbow-delimiters.nvim": { "branch": "master", "commit": "0563a31b1f46a911865cb85df3ddde2eff9fdada" },
40+
"suda.vim": { "branch": "master", "commit": "66727b416837836712975e748bc8a19fb6cf4ec3" },
3641
"telescope-fzf-native.nvim": { "branch": "main", "commit": "9ef21b2e6bb6ebeaf349a0781745549bbb870d27" },
3742
"telescope-ui-select.nvim": { "branch": "master", "commit": "6e51d7da30bd139a6950adf2a47fda6df9fa06d2" },
3843
"telescope.nvim": { "branch": "0.1.x", "commit": "6312868392331c9c0f22725041f1ec2bef57c751" },

lua/keymaps.lua

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,23 @@ local keymaps = {
111111
vim.keymap.set('n', '<leader>k', require('nabla').popup,
112112
{ desc = 'Hover Latex' })
113113
end,
114+
115+
map_better_term = function()
116+
local betterTerm = require('betterTerm')
117+
vim.keymap.set({ "n", "t" }, "<C-;>", betterTerm.open, { desc = "Open terminal" })
118+
-- Select term focus
119+
vim.keymap.set({ "n" }, "<leader>tt", betterTerm.select, { desc = "Select terminal" })
120+
-- Create new term
121+
local current = 2
122+
vim.keymap.set(
123+
{ "n" }, "<leader>tn",
124+
function()
125+
betterTerm.open(current)
126+
current = current + 1
127+
end,
128+
{ desc = "New terminal" }
129+
)
130+
end,
114131
}
115132

116133
return keymaps

lua/options.lua

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,24 @@ vim.o.completeopt = 'menuone,noselect'
4545
-- NOTE: You should make sure your terminal supports this
4646
vim.o.termguicolors = true
4747

48+
-- Configure how new splits should be opened
49+
vim.opt.splitright = true
50+
vim.opt.splitbelow = true
51+
52+
-- Sets how neovim will display certain whitespace characters in the editor.
53+
-- See `:help 'list'`
54+
-- and `:help 'listchars'`
55+
vim.opt.list = true
56+
vim.opt.listchars = { tab = '» ', trail = '·', nbsp = '' }
57+
58+
-- Show which line your cursor is on
59+
vim.opt.cursorline = true
60+
61+
-- Minimal number of screen lines to keep above and below the cursor.
62+
vim.opt.scrolloff = 10
63+
64+
-- Preview substitutions live, as you type!
65+
vim.opt.inccommand = 'split'
4866
-- [[ Highlight on yank ]]
4967
-- See `:help vim.highlight.on_yank()`
5068
local highlight_group = vim.api.nvim_create_augroup('YankHighlight', { clear = true })

lua/plugin-manifest.lua

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,10 @@ return {
2727
require('plugins/comments'),
2828
require('plugins/beacon'),
2929
require('plugins/neogen'),
30-
-- require('plugins/brackets'), -- Causing delay while typing in latex
30+
require('plugins/brackets'), -- Causing delay while typing in latex
3131
-- -- require('plugins/copilot'),
3232
require('plugins/cmake-tools'),
3333
require('plugins/suda'),
34-
require('plugins.nabla')
34+
require('plugins.nabla'),
35+
require('plugins.terminal')
3536
}

lua/plugins/brackets.lua

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
return {
2-
"rstacruz/vim-closer",
2+
'windwp/nvim-autopairs',
3+
event = "InsertEnter",
4+
config = true
5+
-- use opts = {} for passing setup options
6+
-- this is equalent to setup({}) function
37
}

lua/plugins/terminal.lua

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
return {
2+
'CRAG666/betterTerm.nvim',
3+
config = function()
4+
require('betterTerm').setup()
5+
require('keymaps').map_better_term()
6+
end,
7+
}

0 commit comments

Comments
 (0)