From eade51e5b9673312bfd4ec09d89846a73b694f4c Mon Sep 17 00:00:00 2001 From: "Kenneth Benzie (Benie)" Date: Tue, 14 May 2024 21:41:59 +0100 Subject: [PATCH] Add go ftplugin --- after/ftplugin/go.lua | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 after/ftplugin/go.lua diff --git a/after/ftplugin/go.lua b/after/ftplugin/go.lua new file mode 100644 index 0000000..990105d --- /dev/null +++ b/after/ftplugin/go.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'