artemave / workspace-diagnostics.nvim

Populate diagnostics for _all_ projects files, not just opened ones.

Home Page:https://artem.rocks/posts/workspace_diagnostics_nvim

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Undefined global `map`.

sidke opened this issue · comments

Plugin doesn't work with fresh install, narrowed it down to:

_workspace_files = map(_workspace_files, function(_, path)

I might be missing something but it looks to want to be vim.tbl_map instead:

    _workspace_files = vim.tbl_map(function(path)
      return vim.fn.fnamemodify(path, ":p")
    end, _workspace_files)

Ah. I happen to have map defined somewhere down in my init files 🤦