Add (at the moment, very basic) support for documenting Rust using comment-helper.

Preview

Features

  • Supports snippets if you have LuaSnip enabled.
  • Supports the following Rust node types:
    • function_item

Installation

Plug 'ismaelpadilla/comment-helper.nvim' " base plugin
Plug 'ismaelpadilla/comment-helper-rust.nvim'

Configuration

local ch = require("comment_helper")
local ch_rust = require("comment_helper_rust")

ch.set_ignored_types("rust", {"source_file"})
ch.add("rust", "function_item", ch_rust.function_item)