From a04722fb56480defeeeffac1c81c0d2d9f1dba34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20La=C3=ADn?= Date: Wed, 22 May 2024 00:11:35 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix(nvim):=20change=20function?= =?UTF-8?q?=20parameters=20in=20autocmds?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .config/nvim/lua/config/autocmds.lua | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.config/nvim/lua/config/autocmds.lua b/.config/nvim/lua/config/autocmds.lua index db2cbdb7..246fe6ab 100644 --- a/.config/nvim/lua/config/autocmds.lua +++ b/.config/nvim/lua/config/autocmds.lua @@ -5,7 +5,7 @@ local ag = vim.api.nvim_create_augroup ac("BufRead", { pattern = ".env", callback = function() - vim.diagnostic.disable(0) + vim.diagnostic.disable(false) end, }) @@ -75,7 +75,7 @@ ac({ "BufNewFile", "BufRead" }, { group = ag("DisableEslintOnNodeModules", { clear = true }), pattern = { "**/node_modules/**", "node_modules", "/node_modules/*" }, callback = function() - vim.diagnostic.disable(0) + vim.diagnostic.disable(false) end, }) @@ -95,9 +95,8 @@ ac("ModeChanged", { end end, }) - -local numbertoggle = ag("numbertoggle", { clear = true }) -- Toggle between relative/absolute line numbers +local numbertoggle = ag("numbertoggle", { clear = true }) ac({ "BufEnter", "FocusGained", "InsertLeave", "CmdlineLeave", "WinEnter" }, { pattern = "*", group = numbertoggle,