From e6d7578198e6d464ee558e7a83f79d888ba7f502 Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Mon, 27 Feb 2023 08:47:51 +0100 Subject: [PATCH] nvim: Switch from cmp-pandoc to cmp-pandoc-references cmp-pandoc.nvim did not work sufficiently for my use case so far (sometimes it did, most of the times it did not at all, every now and again it sputtered some references to the list). cmp-pandoc-references seems like a plugin kept relatively 'simple' requiring no setup, a single `bibliography: ` line in the pandoc meta-data header and it works flawlessly from there. I might delve deeper at some point, especially with the papis.nvim integration, but for now this is perfectly adequate. --- nvim/.config/nvim/lua/plug/_cmp.lua | 2 +- nvim/.config/nvim/lua/plugins.lua | 9 +++------ 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/nvim/.config/nvim/lua/plug/_cmp.lua b/nvim/.config/nvim/lua/plug/_cmp.lua index 086874a..a5e7393 100644 --- a/nvim/.config/nvim/lua/plug/_cmp.lua +++ b/nvim/.config/nvim/lua/plug/_cmp.lua @@ -7,7 +7,7 @@ lsp.nvim_workspace() lsp.setup_nvim_cmp({ sources = { { name = 'path' }, { name = 'nvim_lsp', keyword_length = 2 }, - { name = 'buffer', keyword_length = 3 }, + { name = 'pandoc_references' }, { name = 'buffer', keyword_length = 3 }, { name = 'luasnip', keyword_length = 2 }, { name = 'tmux' }, { name = 'otter' }, { name = 'latex_symbols' }, { name = 'vCard' }, { name = 'nvim_lua' }, { name = 'buffer' }, { name = 'spell' } diff --git a/nvim/.config/nvim/lua/plugins.lua b/nvim/.config/nvim/lua/plugins.lua index f557fba..fc2f9ef 100644 --- a/nvim/.config/nvim/lua/plugins.lua +++ b/nvim/.config/nvim/lua/plugins.lua @@ -164,11 +164,8 @@ return { "rafamadriz/friendly-snippets", "andersevenrud/cmp-tmux", "hrsh7th/cmp-nvim-lsp", "kdheepak/cmp-latex-symbols", "ray-x/cmp-treesitter", "f3fora/cmp-spell", "hrsh7th/cmp-cmdline", - "cbarrete/completion-vcard", { - 'aspeddro/cmp-pandoc.nvim', - dependencies = { 'nvim-lua/plenary.nvim', 'jbyuki/nabla.nvim' }, - event = "InsertEnter" - }, { "lukas-reineke/lsp-format.nvim", config = true } + "cbarrete/completion-vcard", "jc-doyle/cmp-pandoc-references", + { "lukas-reineke/lsp-format.nvim", config = true } }, config = function() require('plug._cmp') end }, { 'simrat39/symbols-outline.nvim', config = true, event = "VeryLazy" }, -- vista-like outline view for code @@ -177,7 +174,7 @@ return { 'ray-x/navigator.lua', config = function() require('plug._lsp') end, event = "VeryLazy" -}, -- and completion +} -- and completion -- { -- REQUIRES custom `yay -S --asdeps lua51-lyaml invocation` AND is suuper slow -- "jghauser/papis.nvim", -- after = { "telescope.nvim", "nvim-cmp" },