tree-sitter-go-template
otter.nvim
Our great sponsors
tree-sitter-go-template | otter.nvim | |
---|---|---|
5 | 7 | |
60 | 353 | |
- | - | |
5.4 | 8.9 | |
about 2 months ago | 4 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.
otter.nvim
-
Which software do you use to create presentations using Vim that is superior to existing ones?
Quarto is a higher level tool that uses latex/pandoc under the hood. It can run Jupyter style code blocks and include results, and exports to Beamer, RevealJS, and Power Point for presentations. It has very good neovim integration through quarto-nvim, molten.nvim, image.nvim, and otter.nvim.
-
otter.nvim: LSP features for embedded languages (e.g. code chunks in markdown)
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
-
Using Github Copilot.vim within Markdown fenced code blocks
Shameless self promotion: Or https://github.com/jmbuhr/otter.nvim if you want everything in the same document and have code chunks and projects linked
-
A few plugins I have written in case someone finds them useful
For anyone who is interested in edit code block in a prose format document (like markdown), there is a package otter.nvim which allows you to directly have code completion from LSP within the original document buffer.
- Is it possible to see peek the documentation for a symbol within an LSP hover window?
-
This plugin look really amazing!!
tldr: Otter.nvim provides lsp features and a code completion source for code embedded in other documents
What are some alternatives?
vim-helm - vim syntax for helm templates (yaml + gotmpl + sprig + custom)
quarto-nvim-kickstarter - Neovim configuration to show my plugins in action.
tree-sitter-comment - Tree-sitter grammar for comment tags like TODO, FIXME(user).
quarto-nvim - Quarto mode for Neovim
tree-sitter-tlaplus - A tree-sitter grammar for TLA⁺ and PlusCal
nvim-FeMaco.lua - Catalyze your Fenced Markdown Code-block editing!
go-tree-sitter - Golang bindings for tree-sitter https://github.com/tree-sitter/tree-sitter
telescope-file-history.nvim - Neovim local file history managed by git and Telescope
SuperGreenOSBoilerplate - ESP32 Boilerplate code generator - See README ->
crates.nvim - A neovim plugin that helps managing crates.io dependencies
tree-sitter-embedded-template - Tree-sitter grammar for embedded template languages like ERB, EJS
telescope-floaterm.nvim - Telescope extension to list and select floaterm terminals