🐛 fix(nvim): change function parameters in autocmds
This commit is contained in:
parent
c248eb681a
commit
a04722fb56
1 changed files with 3 additions and 4 deletions
|
@ -5,7 +5,7 @@ local ag = vim.api.nvim_create_augroup
|
||||||
ac("BufRead", {
|
ac("BufRead", {
|
||||||
pattern = ".env",
|
pattern = ".env",
|
||||||
callback = function()
|
callback = function()
|
||||||
vim.diagnostic.disable(0)
|
vim.diagnostic.disable(false)
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -75,7 +75,7 @@ ac({ "BufNewFile", "BufRead" }, {
|
||||||
group = ag("DisableEslintOnNodeModules", { clear = true }),
|
group = ag("DisableEslintOnNodeModules", { clear = true }),
|
||||||
pattern = { "**/node_modules/**", "node_modules", "/node_modules/*" },
|
pattern = { "**/node_modules/**", "node_modules", "/node_modules/*" },
|
||||||
callback = function()
|
callback = function()
|
||||||
vim.diagnostic.disable(0)
|
vim.diagnostic.disable(false)
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -95,9 +95,8 @@ ac("ModeChanged", {
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
|
||||||
local numbertoggle = ag("numbertoggle", { clear = true })
|
|
||||||
-- Toggle between relative/absolute line numbers
|
-- Toggle between relative/absolute line numbers
|
||||||
|
local numbertoggle = ag("numbertoggle", { clear = true })
|
||||||
ac({ "BufEnter", "FocusGained", "InsertLeave", "CmdlineLeave", "WinEnter" }, {
|
ac({ "BufEnter", "FocusGained", "InsertLeave", "CmdlineLeave", "WinEnter" }, {
|
||||||
pattern = "*",
|
pattern = "*",
|
||||||
group = numbertoggle,
|
group = numbertoggle,
|
||||||
|
|
Loading…
Add table
Reference in a new issue