From 94c539be47d45320117321088dc2a8fe4a69606d Mon Sep 17 00:00:00 2001 From: iGor milhit Date: Wed, 28 Aug 2024 16:01:21 +0200 Subject: [PATCH] plugins: add zotcite and cmp-zotcite plugins - Adds zotcite plugins (with completion). Co-Authored-by: iGor milhit --- lua/plugins/markdown/zotcite.lua | 25 +++++++++++++++++++++++++ lua/plugins/nvim-cmp.lua | 1 + 2 files changed, 26 insertions(+) create mode 100644 lua/plugins/markdown/zotcite.lua diff --git a/lua/plugins/markdown/zotcite.lua b/lua/plugins/markdown/zotcite.lua new file mode 100644 index 0000000..5591884 --- /dev/null +++ b/lua/plugins/markdown/zotcite.lua @@ -0,0 +1,25 @@ +-- Install and configure zotcite +-- https://github.com/jalvesaq/zotcite + +return { + "jalvesaq/zotcite", + dependencies = { + "nvim-treesitter/nvim-treesitter", + -- Add completion for zotcite + "jalvesaq/cmp-zotcite", + }, + config = function () + require("zotcite").setup({ + -- waiting for zotcite options + }) + require("cmp_zotcite").setup({ + -- Add the pandoc filetype + filetypes = { + "pandoc", + "markdown", + "rmd", + "quarto", + } + }) + end +} diff --git a/lua/plugins/nvim-cmp.lua b/lua/plugins/nvim-cmp.lua index 4ff16ce..cfc9944 100644 --- a/lua/plugins/nvim-cmp.lua +++ b/lua/plugins/nvim-cmp.lua @@ -107,6 +107,7 @@ return { }, { name = "path" }, { name = "emoji" }, + { name = "cmp_zotcite"} -- zotcite (plugins/markdown/zotcite.lua) }), formatting = {