feat(go): force tabs on go files

This commit is contained in:
2024-04-14 15:38:32 +02:00
parent 75743d6fc3
commit 06898a5a31
2 changed files with 8 additions and 1 deletions
+7
View File
@@ -1,3 +1,10 @@
vim.api.nvim_create_autocmd("FileType", {
pattern = "go",
callback = function ()
vim.bo.expandtab = false
end,
})
local custom_highlight = vim.api.nvim_create_augroup("CustomHighlight", {})
vim.api.nvim_create_autocmd("ColorScheme", {
pattern = "moonfly",
+1 -1
View File
@@ -16,7 +16,7 @@ vim.opt.fillchars = {
vim.opt.splitbelow = true
vim.opt.splitright = true
-- set tabline=%!MyTabLine()
vim.opt.tabstop = 8
vim.opt.tabstop = 4
vim.opt.softtabstop = 4
vim.opt.expandtab = true
vim.opt.shiftwidth = 4