summaryrefslogtreecommitdiff
path: root/.config/nvim-old/lua/config/plugins/leetcode.lua
blob: 920aba946a54b40af73e2c0410338dac1a81ce68 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
return {
  "kawre/leetcode.nvim",
  build = function()
    if vim.fn.exists(":TSUpdate") == 2 then
      vim.cmd("TSUpdate html")
    end
  end,
  dependencies = {
    -- include a picker of your choice, see picker section for more details
    "nvim-lua/plenary.nvim",
    "MunifTanjim/nui.nvim",
  },
  opts = {
    -- configuration goes here
    lang = "rust",
    storage = {
      home = vim.fn.expand("~/leetcode"),
      cache = vim.fn.stdpath("cache") .. "/leetcode",
    },
    image_support = false,
  },
}