LunarVim icon indicating copy to clipboard operation
LunarVim copied to clipboard

"args" option does not work specifically for cpplint

Open artistic-nucleus opened this issue 2 years ago • 6 comments

Problem description

1.Install cpplint via mason 2. use args = { "--filter=-legal/copyright"}

LunarVim version

master-e4a5fe9

Neovim version (>= 0.7.2)

NVIM v0.7.2 Build type: Release LuaJIT 2.1.0-beta3 Compiled by runner@fv-az164-457

Operating system/version

Fedora 35

Steps to reproduce

No response

support info

Screenshots

No response

artistic-nucleus avatar Sep 27 '22 17:09 artistic-nucleus

Try args = { "--filter", "-legal/copyright" }. Might be worth checking the logs to make sure the args are being passed. (:NullLsLog, but need to set the debug flag).

lvimuser avatar Sep 28 '22 10:09 lvimuser

Try args = { "--filter", "-legal/copyright" }. Might be worth checking the logs to make sure the args are being passed.

Tried that too, doesn't work.

(:NullLsLog, but need to set the debug flag).

By default NullLsLog is blank. How do I set debug flag?

artistic-nucleus avatar Sep 28 '22 10:09 artistic-nucleus

How do I set debug flag?

lvim.lsp.null_ls.setup["debug"] = true

lvimuser avatar Sep 28 '22 14:09 lvimuser

lvim.lsp.null_ls.setup["debug"] = true

Still nothing in logs

artistic-nucleus avatar Sep 29 '22 07:09 artistic-nucleus

How are you setting up null-ls/formatters/linters?

lvimuser avatar Oct 01 '22 11:10 lvimuser

In config.lua as mentioned in the docs. I also tried installing cpplint.py via pip3 and then adding it to config.lua but still facing the same issue.

artistic-nucleus avatar Oct 01 '22 13:10 artistic-nucleus

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] avatar Nov 01 '22 02:11 github-actions[bot]

This issue was closed because it has been inactive for 14 days since being marked as stale.

github-actions[bot] avatar Nov 16 '22 02:11 github-actions[bot]

Same for me

local linters = require "lvim.lsp.null-ls.linters"
linters.setup {
  {
    command = "cpplint",
    args = { "--filter", "-legal/copyright" },
    filetypes = { "c" },
  }
}

mathstylish avatar Dec 18 '22 21:12 mathstylish