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.
This commit is contained in:
Marty Oehme 2023-02-27 08:47:51 +01:00
parent 0127a5db07
commit e6d7578198
Signed by: Marty
GPG key ID: EDBF2ED917B2EF6A
2 changed files with 4 additions and 7 deletions

View file

@ -7,7 +7,7 @@ lsp.nvim_workspace()
lsp.setup_nvim_cmp({ lsp.setup_nvim_cmp({
sources = { sources = {
{ name = 'path' }, { name = 'nvim_lsp', keyword_length = 2 }, { 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 = 'luasnip', keyword_length = 2 }, { name = 'tmux' },
{ name = 'otter' }, { name = 'latex_symbols' }, { name = 'vCard' }, { name = 'otter' }, { name = 'latex_symbols' }, { name = 'vCard' },
{ name = 'nvim_lua' }, { name = 'buffer' }, { name = 'spell' } { name = 'nvim_lua' }, { name = 'buffer' }, { name = 'spell' }

View file

@ -164,11 +164,8 @@ return {
"rafamadriz/friendly-snippets", "andersevenrud/cmp-tmux", "rafamadriz/friendly-snippets", "andersevenrud/cmp-tmux",
"hrsh7th/cmp-nvim-lsp", "kdheepak/cmp-latex-symbols", "hrsh7th/cmp-nvim-lsp", "kdheepak/cmp-latex-symbols",
"ray-x/cmp-treesitter", "f3fora/cmp-spell", "hrsh7th/cmp-cmdline", "ray-x/cmp-treesitter", "f3fora/cmp-spell", "hrsh7th/cmp-cmdline",
"cbarrete/completion-vcard", { "cbarrete/completion-vcard", "jc-doyle/cmp-pandoc-references",
'aspeddro/cmp-pandoc.nvim', { "lukas-reineke/lsp-format.nvim", config = true }
dependencies = { 'nvim-lua/plenary.nvim', 'jbyuki/nabla.nvim' },
event = "InsertEnter"
}, { "lukas-reineke/lsp-format.nvim", config = true }
}, },
config = function() require('plug._cmp') end config = function() require('plug._cmp') end
}, { 'simrat39/symbols-outline.nvim', config = true, event = "VeryLazy" }, -- vista-like outline view for code }, { 'simrat39/symbols-outline.nvim', config = true, event = "VeryLazy" }, -- vista-like outline view for code
@ -177,7 +174,7 @@ return {
'ray-x/navigator.lua', 'ray-x/navigator.lua',
config = function() require('plug._lsp') end, config = function() require('plug._lsp') end,
event = "VeryLazy" event = "VeryLazy"
}, -- and completion } -- and completion
-- { -- REQUIRES custom `yay -S --asdeps lua51-lyaml invocation` AND is suuper slow -- { -- REQUIRES custom `yay -S --asdeps lua51-lyaml invocation` AND is suuper slow
-- "jghauser/papis.nvim", -- "jghauser/papis.nvim",
-- after = { "telescope.nvim", "nvim-cmp" }, -- after = { "telescope.nvim", "nvim-cmp" },