From 7b392239a9b1fffb3cd37948e1221b710190bbcd Mon Sep 17 00:00:00 2001 From: Pietro Scuttari Date: Fri, 13 Sep 2024 23:33:25 +0200 Subject: [PATCH] First customizations --- init.lua | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/init.lua b/init.lua index ea86b792..8b79ce13 100644 --- a/init.lua +++ b/init.lua @@ -662,6 +662,8 @@ require('lazy').setup({ end, }, } + local lspconfig = require 'lspconfig' + lspconfig.gopls.setup {} end, }, @@ -786,7 +788,7 @@ require('lazy').setup({ -- Manually trigger a completion from nvim-cmp. -- Generally you don't need this, because nvim-cmp will display -- completions whenever it has completion options available. - [''] = cmp.mapping.complete {}, + [''] = cmp.mapping.complete {}, -- Think of as moving to the right of your snippet expansion. -- So if you have a snippet that's like: @@ -930,6 +932,25 @@ require('lazy').setup({ -- Uncomment the following line and add your plugins to `lua/custom/plugins/*.lua` to get going. -- For additional information, see `:help lazy.nvim-lazy.nvim-structuring-your-plugins` -- { import = 'custom.plugins' }, + + { + 'NeogitOrg/neogit', + dependencies = { + 'nvim-lua/plenary.nvim', -- required + 'sindrets/diffview.nvim', -- optional - Diff integration + + -- Only one of these is needed. + 'nvim-telescope/telescope.nvim', -- optional + 'ibhagwan/fzf-lua', -- optional + 'echasnovski/mini.pick', -- optional + }, + config = function() + local neogit = require 'neogit' + neogit.setup {} + + vim.keymap.set('n', 'g', neogit.open, { desc = '[ ] open NeoGit' }) + end, + }, }, { ui = { -- If you are using a Nerd Font: set icons to an empty table which will use the