Our great sponsors
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
If you can write a treesitter query that captures a) the language and b) the embedded code like here: https://github.com/jmbuhr/otter.nvim/blob/main/lua/otter/tools/queries.lua
The easiest way to get started with it is via https://github.com/quarto-dev/quarto-nvim but the reason I made it a separate plugin is because it can also be used for other purposes, so I'm excited what usecases you come up with!
I view otter.nvim more as a library with tools to use in your config or other plugins. It extract's the code chunks, keeps the otter buffers in sync, provides a nvim-cmp source for completion and forwards modified LSP requests. quarto-nvim on the other hand is specific to quarto documents. So it provides some keybindings to otter functions and sets up the otter.nvim source in the example configuration I provide (https://github.com/jmbuhr/quarto-nvim-kickstarter), but also does things like `quarto preview`.
I need to work with yaml containing go templates and the current setup is to set the filetype to GOTMPL with this TS grammar and use language injection for thw yaml, basically encasing the yaml in a gotemplate.
Related posts
- Use treesitter to jump to next argument without going into nested function calls?
- Code navigation ctags/cscope/gnu global alternative?
- How to move between the topmost/root node in treesitter?
- [WIP] A feature-rich, polished, highly customizable winbar, with drop down menu support and multiple backends
- Is there a feature in Neovim similar to Emmet's balance inward and outward in VSCode?