summaryrefslogtreecommitdiff
path: root/.config/nvim-old/lua/config/plugins/leetcode.lua
diff options
context:
space:
mode:
authorTom Li Dobnik <tomlidobnik1@gmail.com>2026-03-03 18:46:16 +0100
committerTom Li Dobnik <tomlidobnik1@gmail.com>2026-03-03 18:46:16 +0100
commitf7bbc5e6740f6199d7ed0fe704daaa7efd98c093 (patch)
treed6cd8984dbf2a8a909f16dde865a19a343c31d48 /.config/nvim-old/lua/config/plugins/leetcode.lua
parent1f156148fadab8468a46e598296b18b54f7860ce (diff)
nvim update
Diffstat (limited to '.config/nvim-old/lua/config/plugins/leetcode.lua')
-rw-r--r--.config/nvim-old/lua/config/plugins/leetcode.lua22
1 files changed, 22 insertions, 0 deletions
diff --git a/.config/nvim-old/lua/config/plugins/leetcode.lua b/.config/nvim-old/lua/config/plugins/leetcode.lua
new file mode 100644
index 0000000..920aba9
--- /dev/null
+++ b/.config/nvim-old/lua/config/plugins/leetcode.lua
@@ -0,0 +1,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,
+ },
+}