We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 84a991c commit 2797c1eCopy full SHA for 2797c1e
1 file changed
after/ftplugin/go.lua
@@ -1,3 +1,11 @@
1
+local opt = vim.opt
2
+
3
+-- General tab settings
4
+opt.tabstop = 4 -- Number of visual spaces per TAB
5
+opt.softtabstop = 4 -- Number of spaces in tab when editing
6
+opt.shiftwidth = 4 -- Number of spaces to use for autoindent
7
+opt.expandtab = false -- Expand tab to spaces so that tabs are spaces
8
9
-- gofumpt adds more rule to gofmt, and is compatible with gofmt,
10
-- so also https://github.com/mvdan/gofumpt
11
vim.keymap.set("n", "<Space>f", function()
0 commit comments