Skip to content

Commit 901385d

Browse files
committed
bufferline.nvim plugin has been added...
- cmp-nvim-lsp-signature-help plugin has been added to use signature help. - nvim-cmp has been updated. - nvim-tree source has been shifted to OurCodeBase to maintain stable apis. - now CTRL+d will used to delete files in file explorer. - now CTRL+x will used to cut current line in InsertMode. - now ALT+c will used to cancel completion menu.
1 parent d60b3f3 commit 901385d

File tree

5 files changed

+20
-7
lines changed

5 files changed

+20
-7
lines changed

lazy-lock.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
{
22
"LuaSnip": { "branch": "master", "commit": "b152822e1a4bafb6bdf11a16cc26525cbd95ee00" },
3+
"bufferline.nvim": { "branch": "main", "commit": "73540cb95f8d95aa1af3ed57713c6720c78af915" },
34
"cmp-buffer": { "branch": "main", "commit": "3022dbc9166796b644a841a02de8dd1cc1d311fa" },
45
"cmp-cmdline": { "branch": "main", "commit": "d250c63aa13ead745e3a40f61fdd3470efde3923" },
6+
"cmp-nvim-lsp-signature-help": { "branch": "main", "commit": "3d8912ebeb56e5ae08ef0906e3a54de1c66b92f1" },
57
"cmp-path": { "branch": "main", "commit": "91ff86cd9c29299a64f968ebb45846c485725f23" },
68
"cmp_luasnip": { "branch": "master", "commit": "05a9ab28b53f71d1aece421ef32fee2cb857a843" },
79
"everforest-nvim": { "branch": "main", "commit": "5e0e32a569fb464911342f0d421721cc1c94cf25" },
@@ -10,7 +12,7 @@
1012
"lazy.nvim": { "branch": "main", "commit": "758bb5de98b805acc5eeed8cdc8ac7f0bc4b0b86" },
1113
"lualine.nvim": { "branch": "master", "commit": "0a5a66803c7407767b799067986b4dc3036e1983" },
1214
"nvim-autopairs": { "branch": "master", "commit": "14e97371b2aab6ee70054c1070a123dfaa3e217e" },
13-
"nvim-cmp": { "branch": "main", "commit": "1d88772dc662cb33ae9b4b6ed78fae54b485a43a" },
15+
"nvim-cmp": { "branch": "main", "commit": "24122371810089d390847d8ba66325c1f1aa64c0" },
1416
"nvim-tree.lua": { "branch": "master", "commit": "78c4c083ed5d47e7fab7627d78ce33d3bcfb88f0" },
1517
"nvim-web-devicons": { "branch": "master", "commit": "5b9067899ee6a2538891573500e8fd6ff008440f" }
1618
}

lua/plugins/bufferline.lua

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
return {
2+
"akinsho/bufferline.nvim",
3+
event = "TabNewEntered",
4+
dependencies = "nvim-tree/nvim-web-devicons",
5+
config = function()
6+
require("bufferline").setup{}
7+
end
8+
}

lua/plugins/completions.lua

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ return {
66
"hrsh7th/cmp-buffer", -- buffer completion
77
"hrsh7th/cmp-path", -- path completion
88
{ "hrsh7th/cmp-cmdline", event = "CmdlineEnter" }, -- cmdline completion
9+
"hrsh7th/cmp-nvim-lsp-signature-help", -- signature completion
910
-- snippets
1011
"L3MON4D3/LuaSnip", -- snippet engine
1112
"saadparwaiz1/cmp_luasnip", -- snippet engine
@@ -45,9 +46,10 @@ return {
4546
sources = cmp.config.sources({
4647
{ name = 'nvim_lsp' },
4748
{ name = 'luasnip' },
48-
}, {
4949
{ name = 'buffer' },
50-
})
50+
{ name = 'path' },
51+
{ name = 'nvim_lsp_signature_help' },
52+
}),
5153
})
5254

5355
cmp.setup.cmdline({ '/', '?' }, {
@@ -68,9 +70,8 @@ return {
6870
['<Down>'] = cmp.mapping(cmp.mapping.select_next_item(), { 'i', 'c' }),
6971
},
7072
sources = cmp.config.sources({
71-
{ name = 'path' }
72-
}, {
73-
{ name = 'cmdline' }
73+
{ name = 'path' },
74+
{ name = 'cmdline' },
7475
}),
7576
matching = { disallow_symbol_nonprefix_matching = true }
7677
})

lua/plugins/fileexplorer.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
return {
2-
"nvim-tree/nvim-tree.lua",
2+
"OurCodeBase/nvim-tree.lua",
33
cmd = "NvimTreeFindFile",
44
dependencies = { "nvim-tree/nvim-web-devicons" },
55
config = function()
@@ -17,6 +17,7 @@ return {
1717
vim.keymap.set('n', '<C-x>', api.fs.cut, opts('Cut File'))
1818
vim.keymap.set('n', '<C-c>', api.fs.copy.node, opts('Copy File'))
1919
vim.keymap.set('n', '<C-v>', api.fs.paste, opts('Paste File'))
20+
vim.keymap.set('n', '<C-d>', api.fs.remove, opts('Delete File'))
2021
vim.keymap.set('n', '<C-o>', api.node.open.tab, opts('Open File'))
2122
end
2223
explorer.setup({

lua/user/keymaps.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ imap("<C-r>","<Esc>:redo<CR>i")
2121
imap("<C-Up>","<Esc>:m-2<CR>gi")
2222
imap("<C-Down>","<Esc>:m+<CR>gi")
2323
imap("<C-c>","<Esc>yyi")
24+
imap("<C-x>","<Esc>ddi")
2425
imap("<C-v>","<Esc>pi")
2526

2627
vim.api.nvim_set_keymap('v', "<BS>", "d", { noremap = true, silent = true })

0 commit comments

Comments
 (0)