aboutsummaryrefslogtreecommitdiff
path: root/nvim/lua/plugins
diff options
context:
space:
mode:
authorGravatar Jonas Gunz <himself@jonasgunz.de> 2024-04-04 01:38:02 +0200
committerGravatar Jonas Gunz <himself@jonasgunz.de> 2024-04-04 01:38:02 +0200
commit0d3c651897f9e4b3a7e97b327d4a6574fe350b6c (patch)
tree65353bba1e82dd4ea2c20a4c4bee89c6d2f282c3 /nvim/lua/plugins
parentc511b5f4c99c152b56985cda8eef2d2bb42df412 (diff)
downloaddotfiles-0d3c651897f9e4b3a7e97b327d4a6574fe350b6c.tar.gz
nvim some more plugins
Diffstat (limited to 'nvim/lua/plugins')
-rw-r--r--nvim/lua/plugins/completion.lua31
-rw-r--r--nvim/lua/plugins/git.lua12
-rw-r--r--nvim/lua/plugins/init.lua7
3 files changed, 49 insertions, 1 deletions
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
+ }
}