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
-- setup efmlocalefm_opts=lsp_zero.efm.tools({ -- this is line 201, from the error below
{
name="markdown-lint",
lintCommand="markdownlint -s",
lintStdin=true,
lintFormats= {
"%f:%l %m",
"%f:%l:%c %m",
"%f: %l: %m",
},
languages= { "markdown" },
},
{
name="markdown-pandoc",
formatCommand="pandoc -f markdown -t gfm -sp --tab-stop=2",
languages= { "markdown" },
},
})
require("lspconfig").efm.setup(efm_opts)
But when running this, I get:
Error detected while processing /home/nathan/dotfiles/nvim/init.lua:
E5113: Error while calling lua chunk: /home/nathan/dotfiles/nvim/init.lua:201: attempt to index field 'efm' (a nil value)
stack traceback:
/home/nathan/dotfiles/nvim/init.lua:201: in main chunk
Why? What shall I do different?
Thanks!
The text was updated successfully, but these errors were encountered:
Hi,
I am trying to configure efm to use markdown-lint and pandoc in markdown. Following this https://github.com/VonHeikemen/lsp-zero.nvim/blob/efm-client/doc/md/api-reference.md#efmtoolsopts I did:
But when running this, I get:
Why? What shall I do different?
Thanks!
The text was updated successfully, but these errors were encountered: