From 2cb5ad0acc41215b0ac7cce4794a9e2ab26dee27 Mon Sep 17 00:00:00 2001 From: jonathan santis Date: Mon, 16 Dec 2024 14:29:47 +0100 Subject: [PATCH] modify nvim config --- nvim/init.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 })