You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i get this error on saving my nvim lua config. if i revert to commit fe16081 it works.
".config/nvim/init.lua" 571L, 18653C written
Error detected while processing BufWritePost Autocommands for "<buffer=1>":
E5108: Error executing lua vim/shared.lua:187: t: expected table, got nil
stack traceback:
[C]: in function 'error'
vim/shared.lua:608: in function 'validate'
vim/shared.lua:187: in function 'tbl_map'
...share/nvim/site/pack/packer/start/nvim-lint/lua/lint.lua:91: in function 'try_lint'
[string ":lua"]:1: in main chunk
here is the config:
use {
"mfussenegger/nvim-lint",
config = function()
local lint = require "lint"
lint.linters.golangcilint.args = {
"run",
"--enable-all",
"--disable=godox,tagliatelle,exhaustivestruct,varnamelen",
"--build-tags=integration",
"--out-format",
"json"
}
lint.linters_by_ft = {
go = {"golangcilint"},
sh = {"shellcheck"},
ansible = {"ansible_lint"}
}
end
}
and
local function nvim_create_augroups(definitions)
for group_name, definition in pairs(definitions) do
api.nvim_command("augroup " .. group_name)
api.nvim_command("autocmd!")
for _, def in ipairs(definition) do
-- if type(def) == 'table' and type(def[#def]) == 'function' then
-- def[#def] = lua_callback(def[#def])
-- end
local command = table.concat(vim.tbl_flatten {"autocmd", def}, " ")
api.nvim_command(command)
end
api.nvim_command("augroup END")
end
end
nvim_create_augroups({lint = {{"BufWritePost", "<buffer>", "lua require('lint').try_lint()"}}})
The text was updated successfully, but these errors were encountered:
i get this error on saving my nvim lua config. if i revert to commit fe16081 it works.
here is the config:
and
The text was updated successfully, but these errors were encountered: