Add specific settings for Go files

This commit is contained in:
2021-12-23 22:30:14 +03:00
parent 9d21edde0d
commit 06a67afa90

View File

@@ -97,7 +97,12 @@ vim.o.termguicolors = true
vim.o.signcolumn = "yes" vim.o.signcolumn = "yes"
vim.opt.fillchars:append({eob = " "}) vim.opt.fillchars:append({eob = " "})
vim.g.mapleader = " " -- Go specific settings
vim.cmd([[
autocmd FileType go set tabstop=4
autocmd FileType go set shiftwidth=4
autocmd FileType go set noexpandtab
]])
vim.g.mapleader = " " vim.g.mapleader = " "