aboutsummaryrefslogtreecommitdiffstats
path: root/lua/plugins/code-annotation.lua
blob: 52d03799410d6ce662363f76746f93d55a7625a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
local neogeo_opts = {}

if not vim.g.vscode then
  neogeo_opts = {
    enabled = true,
    -- Only use luasnip as snippet engine if that is not vscode
    snippet_engine = "luasnip",
  }
end

return {
  {
    -- A better annotation generator. Supports multiple languages and annotation conventions.
    -- <C-n> to jump to next annotation, <C-p> to jump to previous annotation
    "danymat/neogen",
    vscode = true,
    dependencies = "nvim-treesitter/nvim-treesitter",
    opts = neogeo_opts,
    cmd = "Neogen",
    keys = {
      { "<leader>ci", "<cmd>Neogen<cr>", desc = "Neogen - Annotation generator" },
    },
  },
}