Skip to content

How to config nvim_lspconfig to work with markdown & quarto files using lazyvim as template? #82

Answered by jmbuhr
hopezh asked this question in Q&A
Discussion options

You must be logged in to vote

I made a version of kickstarter based on LazyVim for this very purpose.
https://github.com/jmbuhr/lazyvim-starter-for-quarto/blob/main/lua/plugins/quarto.lua
should contain everything you need.

Incidentally, the on_attach things are not necessary there because LazyVim uses the LspAttach autocommand, which runs before on_attach, so I was able to add my own autocommand right inside of quarto/otter (here: https://github.com/quarto-dev/quarto-nvim/blob/main/ftplugin/quarto.lua). If quarto is configured after lspconfig (determined via the dependencies), it's keybindings should win out. This should be the case in the example.

Replies: 3 comments 11 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by hopezh
Comment options

You must be logged in to vote
5 replies
@jmbuhr
Comment options

@hopezh
Comment options

@jmbuhr
Comment options

@hopezh
Comment options

@jmbuhr
Comment options

Comment options

You must be logged in to vote
6 replies
@hopezh
Comment options

@jmbuhr
Comment options

@jmbuhr
Comment options

@jmbuhr
Comment options

@hopezh
Comment options

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