tree-sitter-go-template
quarto-nvim-kickstarter
Our great sponsors
tree-sitter-go-template | quarto-nvim-kickstarter | |
---|---|---|
5 | 6 | |
60 | 175 | |
- | - | |
5.4 | 9.2 | |
about 2 months ago | 7 days ago | |
C | Lua | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
tree-sitter-go-template
-
adding go html template highlight in lazyvim
I followed the instructions for https://github.com/ngalaiko/tree-sitter-go-template and replaced `yml` injection with `html` injection.
-
otter.nvim: LSP features for embedded languages (e.g. code chunks in markdown)
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.
-
K8s Treesitter Module
Helm charts use yaml + go templates. There is a parser for go templates, but its a bit tricky to setup https://github.com/ngalaiko/tree-sitter-go-template
-
Helm charts for Kubernetes in Nvim - bad experience
I use tree-sitter for syntax highlighting, and I have found this grammar (note that helm templates are basically go templates), but it's not very polished and brakes pure yaml syntax highlighting. Another problem I have is that, because helm template files end in .yaml, I get a tone of diagnostics errors from the yamlls lsp server and I have to disable it every time with lua vim.diagnostics.disable(). Lastly it would be really nice if I could get autocompletion working and maybe some linting.
quarto-nvim-kickstarter
-
Looking for assistance for plugin configuration
- https://github.com/jmbuhr/quarto-nvim-kickstarter
-
otter.nvim: LSP features for embedded languages (e.g. code chunks in markdown)
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`.
-
Spellcheck doesn't work in markdown tables
Are you using treesitter? I think it only defines regular paragraphs and headings as spelling regions (see @spell here: https://github.com/nvim-treesitter/nvim-treesitter/blob/master/queries/markdown/highlights.scm). You can add your own query to make another region spell check as well by adding a file to your config like this (example is for the R filetype, same principle for markdown): https://github.com/jmbuhr/quarto-nvim-kickstarter/blob/main/after/queries/r/highlights.scm in which you then add @spell to a query. Check out nvim-treesitter-playground to find the query you need.
-
What do you use to send lines of code to the terminal? (AKA vim-slime alternatives?)
For quarto and plain code files I am still on vim-slime, either using a terminal buffer or a tmux pane. If you find a more neovim centered solution, do let me know in an issue over at https://github.com/jmbuhr/quarto-nvim-kickstarter ;)
-
Function and class text objects with Treesitter?
Here are some examples: https://github.com/jmbuhr/quarto-nvim-kickstarter/blob/main/lua/plugins/treesitter.lua
-
Neovim GUI for Jupyter Notebooks
To edit code in a quarto document you can use my quarto-nvim plugin: https://github.com/quarto-dev/quarto-nvim and get a headstart of plugins that complement it here: https://github.com/jmbuhr/quarto-nvim-kickstarter
What are some alternatives?
vim-helm - vim syntax for helm templates (yaml + gotmpl + sprig + custom)
otter.nvim - Just ask an otter! 🦦
tree-sitter-comment - Tree-sitter grammar for comment tags like TODO, FIXME(user).
nvim-python-repl - A simple neovim plugin that leverages treesitter for interacting with a python/scala/lua REPL.
tree-sitter-tlaplus - A tree-sitter grammar for TLA⁺ and PlusCal
nsxiv - Read-only mirror of Neo Simple X Image Viewer
go-tree-sitter - Golang bindings for tree-sitter https://github.com/tree-sitter/tree-sitter
mini.nvim - Library of 35+ independent Lua modules improving overall Neovim (version 0.7 and higher) experience with minimal effort
SuperGreenOSBoilerplate - ESP32 Boilerplate code generator - See README ->
nvim-treesitter-textobjects
tree-sitter-embedded-template - Tree-sitter grammar for embedded template languages like ERB, EJS
magma-nvim-goose - Interact with Jupyter from NeoVim. - fork