From 7a8d0c78c32128848dbbcba61c9d7bb2b97e747b 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 | 22 ++++++++++++++++++++++ lua/plugins/nvim-cmp.lua | 4 ++++ 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..eb2fa43 --- /dev/null +++ b/lua/plugins/markdown/zotcite.lua @@ -0,0 +1,22 @@ +-- Install and configure zotcite +-- https://github.com/jalvesaq/zotcite + +return { + "jalvesaq/zotcite", + dependencies = { + "nvim-treesitter/nvim-treesitter", + }, + config = function () + require("zotcite").setup({ + -- waiting for zotcite options + }) + require("cmp_zotcite").setup({ + filetypes = { + "pandoc", + "markdown", + "rmd", + "quarto", + } + }) + end +} diff --git a/lua/plugins/nvim-cmp.lua b/lua/plugins/nvim-cmp.lua index 4ff16ce..4080e00 100644 --- a/lua/plugins/nvim-cmp.lua +++ b/lua/plugins/nvim-cmp.lua @@ -28,6 +28,9 @@ return { "hrsh7th/cmp-emoji", -- vs-code pictrograms "onsails/lspkind.nvim", + + -- Adds completion for zotcite + "jalvesaq/cmp-zotcite", }, -- Configure nvim-cmp @@ -107,6 +110,7 @@ return { }, { name = "path" }, { name = "emoji" }, + { name = "cmp_zotcite"} }), formatting = {