aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--nvim/lazy-lock.json9
-rw-r--r--nvim/lua/plugins/completion.lua31
-rw-r--r--nvim/lua/plugins/git.lua12
-rw-r--r--nvim/lua/plugins/init.lua7
4 files changed, 57 insertions, 2 deletions
diff --git a/nvim/lazy-lock.json b/nvim/lazy-lock.json
index e13e19e..6aadc53 100644
--- a/nvim/lazy-lock.json
+++ b/nvim/lazy-lock.json
@@ -1,5 +1,12 @@
{
+ "cmp-buffer": { "branch": "main", "commit": "3022dbc9166796b644a841a02de8dd1cc1d311fa" },
+ "cmp-cmdline": { "branch": "main", "commit": "d250c63aa13ead745e3a40f61fdd3470efde3923" },
+ "cmp-nvim-lsp": { "branch": "main", "commit": "5af77f54de1b16c34b23cba810150689a3a90312" },
+ "cmp-path": { "branch": "main", "commit": "91ff86cd9c29299a64f968ebb45846c485725f23" },
+ "gitsigns.nvim": { "branch": "main", "commit": "b45ff86f5618d1421a88c12d4feb286b80a1e2d3" },
"lazy.nvim": { "branch": "main", "commit": "83493db50a434a4c5c648faf41e2ead80f96e478" },
"nvim-cmp": { "branch": "main", "commit": "04e0ca376d6abdbfc8b52180f8ea236cbfddf782" },
- "nvim-hardline": { "branch": "main", "commit": "9b85ebfba065091715676fb440c16a37c465b9a5" }
+ "nvim-hardline": { "branch": "main", "commit": "9b85ebfba065091715676fb440c16a37c465b9a5" },
+ "nvim-lspconfig": { "branch": "master", "commit": "96e5711040df23583591391ce49e556b8cd248d8" },
+ "rainbow": { "branch": "master", "commit": "61f719aebe0dc5c3048330c50db72cfee1afdd34" }
} \ No newline at end of file
diff --git a/nvim/lua/plugins/completion.lua b/nvim/lua/plugins/completion.lua
new file mode 100644
index 0000000..4d46317
--- /dev/null
+++ b/nvim/lua/plugins/completion.lua
@@ -0,0 +1,31 @@
+return {
+ {
+ "hrsh7th/nvim-cmp",
+ dependencies = {
+ 'neovim/nvim-lspconfig',
+ 'hrsh7th/cmp-nvim-lsp',
+ 'hrsh7th/cmp-buffer',
+ 'hrsh7th/cmp-path',
+ 'hrsh7th/cmp-cmdline'
+ },
+ config = function()
+ local cmp = require'cmp'
+ cmp.setup {
+ snippet = {
+ expand = function()
+ vim.snippet.expand(args.body)
+ end,
+ },
+ window = {
+ completion = cmp.config.window.bordered(),
+ documentation = cmp.config.window.bordered(),
+ },
+ sources = cmp.config.sources({
+ { name = 'nvim_lsp' },
+ },{
+ { name = 'buffer' },
+ })
+ }
+ end,
+ },
+}
diff --git a/nvim/lua/plugins/git.lua b/nvim/lua/plugins/git.lua
new file mode 100644
index 0000000..f5fe2a1
--- /dev/null
+++ b/nvim/lua/plugins/git.lua
@@ -0,0 +1,12 @@
+return {
+ {
+ "lewis6991/gitsigns.nvim",
+ config = function()
+ require('gitsigns').setup {
+ signcolumn = false,
+ numhl = true
+
+ }
+ end,
+ }
+}
diff --git a/nvim/lua/plugins/init.lua b/nvim/lua/plugins/init.lua
index 29d8e53..c91124e 100644
--- a/nvim/lua/plugins/init.lua
+++ b/nvim/lua/plugins/init.lua
@@ -1,3 +1,8 @@
return {
- "hrsh7th/nvim-cmp",
+ {
+ "luochen1990/rainbow",
+ init = function()
+ vim.g.rainbow_active = 1
+ end
+ }
}