From 7174b15a3dfa88897bc50c88cafb94154cf9582b Mon Sep 17 00:00:00 2001 From: surdeus Date: Sun, 14 Jul 2024 20:10:31 +0500 Subject: [PATCH] feat: nvim: remove auto format for zig. --- nvim/lua/filetypes.lua | 2 +- nvim/lua/general.lua | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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")