From 991f3d3785b19877ee8256442e544f13f9eee707 Mon Sep 17 00:00:00 2001 From: Wind Date: Tue, 14 Oct 2025 09:52:28 +0800 Subject: [PATCH 1/2] config guess-indent in setup --- init.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/init.lua b/init.lua index b98ffc61..f429dcb5 100644 --- a/init.lua +++ b/init.lua @@ -247,7 +247,10 @@ rtp:prepend(lazypath) -- NOTE: Here is where you install your plugins. require('lazy').setup({ -- NOTE: Plugins can be added with a link (or for a github repo: 'owner/repo' link). - 'NMAC427/guess-indent.nvim', -- Detect tabstop and shiftwidth automatically + { + 'NMAC427/guess-indent.nvim', -- Detect tabstop and shiftwidth automatically + config = function() require('guess-indent').setup {} end, + }, -- NOTE: Plugins can also be added by using a table, -- with the first argument being the link and the following From 91d371ab4fe15fd9c87e4d86c0c28505780d9ee5 Mon Sep 17 00:00:00 2001 From: Wind Date: Tue, 14 Oct 2025 10:04:35 +0800 Subject: [PATCH 2/2] Format config function for guess-indent plugin --- init.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/init.lua b/init.lua index f429dcb5..9881e86e 100644 --- a/init.lua +++ b/init.lua @@ -249,7 +249,9 @@ require('lazy').setup({ -- NOTE: Plugins can be added with a link (or for a github repo: 'owner/repo' link). { 'NMAC427/guess-indent.nvim', -- Detect tabstop and shiftwidth automatically - config = function() require('guess-indent').setup {} end, + config = function() + require('guess-indent').setup {} + end, }, -- NOTE: Plugins can also be added by using a table,