From 8653c8b4cd4e94fe29cf7b8e8eec974b5d33290c Mon Sep 17 00:00:00 2001 From: "Kenneth Benzie (Benie)" Date: Tue, 26 Aug 2025 20:40:28 +0100 Subject: [PATCH] Use same settings for gomod filetype as go --- after/ftplugin/gomod.lua | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 after/ftplugin/gomod.lua diff --git a/after/ftplugin/gomod.lua b/after/ftplugin/gomod.lua new file mode 100644 index 0000000..990105d --- /dev/null +++ b/after/ftplugin/gomod.lua @@ -0,0 +1,6 @@ +vim.opt.expandtab = false +vim.opt.tabstop = 4 +vim.opt.shiftwidth = 4 +vim.opt.softtabstop = 4 +vim.wo.listchars = 'extends:»,nbsp:⦸,precedes:«,tab: ,trail:·' +vim.bo.formatprg = 'gofmt'