Skip to content

Commit 7f84d85

Browse files
committed
add tab indents to size 2 for go, and add auto pair
1 parent 5baf8c2 commit 7f84d85

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

init.lua

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,10 @@ I hope you enjoy your Neovim journey,
8383
8484
P.S. You can delete this when you're done too. It's your config now! :)
8585
--]]
86-
86+
vim.opt.tabstop = 2
87+
vim.opt.shiftwidth = 2
88+
vim.opt.expandtab = true
89+
vim.bo.softtabstop = 2
8790
-- NOTE Adding a
8891

8992
vim.wo.relativenumber = true

lua/custom/plugins/init.lua

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,12 @@
22
-- I promise not to create any merge conflicts in this directory :)
33
--
44
-- See the kickstart.nvim README for more information
5-
return {}
5+
return {
6+
{
7+
'windwp/nvim-autopairs',
8+
event = 'InsertEnter',
9+
config = true,
10+
-- use opts = {} for passing setup options
11+
-- this is equalent to setup({}) function
12+
},
13+
}

0 commit comments

Comments
 (0)