diff --git a/nvim/init.lua b/nvim/init.lua index aab9396..8df8ded 100644 --- a/nvim/init.lua +++ b/nvim/init.lua @@ -1,4 +1,5 @@ #require 'lspconfig'.clangd.setup{} + vim.g.zig_fmt_autosave = 0 vim.cmd("set number") vim.cmd("set tabstop=4") @@ -7,6 +8,7 @@ vim.cmd("set expandtab") vim.cmd("set shiftwidth=4") vim.cmd("set ttyfast") vim.cmd("let mapleader=','") +vim.cmd("set makeprg=zig\\ run\\ %<.zig") local vim = vim local Plug = vim.fn['plug#'] @@ -47,7 +49,7 @@ vim.g.zig_fmt_autosave = 0 vim.api.nvim_create_autocmd('BufWritePre',{ pattern = {"*.zig", "*.zon"}, callback = function(ev) - vim.lsp.buf.format() + -- vim.lsp.buf.format() end })