quarto-nvim
quarto-nvim copied to clipboard
Error thrown on opening simple documents : invalid 'group': 'lspconfig'"
I started running into a problem after updating my nvim plugins. I started getting errors like this when I opened qmd files. Here's the output that shows up in the error message.
Error detected while processing BufReadPost Autocommands for "*":
Error executing lua callback: ...rew/Cellar/neovim/0.10.4/share/nvim/runtime/filetype.lua:35: Error executing lua: .
..rew/Cellar/neovim/0.10.4/share/nvim/runtime/filetype.lua:36: BufReadPost Autocommands for "*"..FileType Autocomman
ds for "*"..function <SNR>1_LoadFTPlugin[20]..script /Users/jdonaldson/.local/share/lunarvim/site/pack/lazy/opt/quar
to-nvim/ftplugin/quarto.lua: Vim(runtime):E5113: Error while calling lua chunk: ...unarvim/site/pack/lazy/opt/otter.
nvim/lua/otter/init.lua:196: Invalid 'group': 'lspconfig'
stack traceback:
[C]: in function 'nvim_get_autocmds'
...unarvim/site/pack/lazy/opt/otter.nvim/lua/otter/init.lua:196: in function 'activate'
...arvim/site/pack/lazy/opt/quarto-nvim/lua/quarto/init.lua:193: in function 'activate'
...arvim/site/pack/lazy/opt/quarto-nvim/ftplugin/quarto.lua:11: in main chunk
[C]: in function 'nvim_cmd'
...rew/Cellar/neovim/0.10.4/share/nvim/runtime/filetype.lua:36: in function <...rew/Cellar/neovim/0.10.4/sha
re/nvim/runtime/filetype.lua:35>
[C]: in function 'nvim_buf_call'
...rew/Cellar/neovim/0.10.4/share/nvim/runtime/filetype.lua:35: in function <...rew/Cellar/neovim/0.10.4/sha
re/nvim/runtime/filetype.lua:10>
stack traceback:
[C]: in function 'nvim_cmd'
...rew/Cellar/neovim/0.10.4/share/nvim/runtime/filetype.lua:36: in function <...rew/Cellar/neovim/0.10.4/sha
re/nvim/runtime/filetype.lua:35>
[C]: in function 'nvim_buf_call'
...rew/Cellar/neovim/0.10.4/share/nvim/runtime/filetype.lua:35: in function <...rew/Cellar/neovim/0.10.4/sha
re/nvim/runtime/filetype.lua:10>
stack traceback:
[C]: in function 'nvim_buf_call'
...rew/Cellar/neovim/0.10.4/share/nvim/runtime/filetype.lua:35: in function <...rew/Cellar/neovim/0.10.4/sha
re/nvim/runtime/filetype.lua:10>
I'm using Lunarvim/Neovim:
:version
NVIM v0.10.4
Build type: Release
LuaJIT 2.1.1736781742
Run ":verbose version" for more info
From what I can gather, it's an otter.nvim issue, but it wasn't immediately obvious to me where the problem was. I'm putting down some extended notes since I don't see anyone else running into the exact same problem. The problem will trigger even on simple qmd documents like this:
---
title: "simple example"
---
I can get it working by inserting a new line right before the frontmatter block:
---
title: "simple example"
---
Here's the relevant library versions I'm on:
● quarto-nvim 14.68ms start
dir /Users/jdonaldson/.local/share/lunarvim/site/pack/lazy/opt/quarto-nvim
url https://github.com/quarto-dev/quarto-nvim
version 1.2.1
tag v1.2.1
branch main
commit abc417c
readme README.md
help |quarto.txt|
● otter.nvim 0.11ms quarto-nvim
dir /Users/jdonaldson/.local/share/lunarvim/site/pack/lazy/opt/otter.nvim
url https://github.com/jmbuhr/otter.nvim
version 2.6.1
tag stable
branch main
commit 0e42fa7
readme README.md
help |otter.nvim.txt|