iamcco / coc-diagnostic

diagnostic-languageserver extension for coc.nvim
245 stars 22 forks source link

luacheck: Add "--filename=%filepath" to args list #94

Closed lithammer closed 3 years ago

lithammer commented 3 years ago

Without this luacheck will interpret all files as if they are named stdin instead of their actual name. This causes issues with configuration like exclude_files that works off the filepath.

So something like this doesn't work as expected since it will be matched against "stdin" instead of "foo/bar/baz.lua".

exclude_files = {
  "foo/bar/baz.lua"
}
iamcco commented 3 years ago

Thanks!