Skip to content

Help getting PerlNavigator sourcing _.perlcriticrc_ in project directory #113

Answered by WhoIsSethDaniel
vendion asked this question in Q&A
Discussion options

You must be logged in to vote

@vendion I feel stupid for not seeing this earlier, but you need an extra key after settings. Try this:

lspconfig["perlnavigator"].setup({
      capabilities = capabilities,
      on_attach = on_attach,
      cmd = { os.getenv("HOME") .. "/.local/share/nvim/mason/bin/perlnavigator" },
      settings = {
        perlnavigator = {
          logging = true,
          perlPath = "perl",
          enableWarnings = true,
          perltidyProfile = "",
          perlcriticEnabled = true,
          perlcriticProfile = "$workspaceFolder/.perlcriticrc",
          perlimportsLintEnabled = true,
          perlimportsTidyEnabled = true,
          perlimportsProfile = "",
      },
   }, 
})

Replies: 10 comments 12 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
7 replies
@vendion
Comment options

@bscan
Comment options

@vendion
Comment options

@WhoIsSethDaniel
Comment options

@vendion
Comment options

Comment options

You must be logged in to vote
2 replies
@bscan
Comment options

@vendion
Comment options

Comment options

You must be logged in to vote
1 reply
@vendion
Comment options

Comment options

You must be logged in to vote
2 replies
@vendion
Comment options

@WhoIsSethDaniel
Comment options

Answer selected by vendion
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants