diff --git a/nvim/lua/filetypes.lua b/nvim/lua/filetypes.lua index 6689a72..dd12017 100644 --- a/nvim/lua/filetypes.lua +++ b/nvim/lua/filetypes.lua @@ -41,7 +41,7 @@ createAutoCmd({ "BufNewFile", "BufRead", },{ - pattern = "*.py", + pattern = "*.py,*.zig", callback = function() local buf = vim.bo[vim.api.nvim_get_current_buf()] buf.expandtab = true diff --git a/nvim/lua/general.lua b/nvim/lua/general.lua index 37997f8..043f4ae 100644 --- a/nvim/lua/general.lua +++ b/nvim/lua/general.lua @@ -2,6 +2,7 @@ vim.cmd("syntax off") vim.cmd("set nowrap") vim.g.autoformat = false +vim.g.zig_fmt_autosave = 0 -- The standard. vim.cmd.language("en_US")