From 7f84d85328ee8efbf8b46ce6730b5cb135d983af Mon Sep 17 00:00:00 2001 From: Luca Sciarra Date: Sat, 20 Jul 2024 22:02:07 -0400 Subject: [PATCH] add tab indents to size 2 for go, and add auto pair --- init.lua | 5 ++++- lua/custom/plugins/init.lua | 10 +++++++++- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/init.lua b/init.lua index 3aa6de0c..9127a669 100644 --- a/init.lua +++ b/init.lua @@ -83,7 +83,10 @@ I hope you enjoy your Neovim journey, P.S. You can delete this when you're done too. It's your config now! :) --]] - +vim.opt.tabstop = 2 +vim.opt.shiftwidth = 2 +vim.opt.expandtab = true +vim.bo.softtabstop = 2 -- NOTE Adding a vim.wo.relativenumber = true diff --git a/lua/custom/plugins/init.lua b/lua/custom/plugins/init.lua index be0eb9d8..cee0bea3 100644 --- a/lua/custom/plugins/init.lua +++ b/lua/custom/plugins/init.lua @@ -2,4 +2,12 @@ -- I promise not to create any merge conflicts in this directory :) -- -- See the kickstart.nvim README for more information -return {} +return { + { + 'windwp/nvim-autopairs', + event = 'InsertEnter', + config = true, + -- use opts = {} for passing setup options + -- this is equalent to setup({}) function + }, +}