diff --git a/nvim/.config/nvim/lua/plug/_cmp.lua b/nvim/.config/nvim/lua/plug/_cmp.lua index bad2eb5..b61ef7e 100644 --- a/nvim/.config/nvim/lua/plug/_cmp.lua +++ b/nvim/.config/nvim/lua/plug/_cmp.lua @@ -68,14 +68,17 @@ cmp.setup({ }, sources = cmp.config.sources({ { name = 'path' }, { name = 'nvim_lsp' }, { name = 'treesitter' }, - { name = 'tmux' }, { name = 'vsnip' }, { name = 'latex_symbols' }, - { name = 'vCard' }, { name = 'nvim_lua' } + { name = 'cmp_pandoc' }, { name = 'tmux' }, { name = 'vsnip' }, + { name = 'latex_symbols' }, { name = 'vCard' }, { name = 'nvim_lua' } }, { { name = 'buffer' }, { name = 'spell' } }) }) if vim.o.ft == 'clap_input' and vim.o.ft == 'guihua' and vim.o.ft == 'guihua_rust' then require 'cmp'.setup.buffer { completion = { enable = false } } end +-- set up pandoc bibtex source generation +require 'cmp_pandoc'.setup() + -- Use buffer source for `/` search cmp.setup.cmdline('/', { mapping = cmp.mapping.preset.cmdline(), diff --git a/nvim/.config/nvim/lua/plugins.lua b/nvim/.config/nvim/lua/plugins.lua index 45ff9f5..388b2d0 100644 --- a/nvim/.config/nvim/lua/plugins.lua +++ b/nvim/.config/nvim/lua/plugins.lua @@ -236,6 +236,10 @@ require("packer").startup(function() } } + use { + 'aspeddro/cmp-pandoc.nvim', + requires = {'nvim-lua/plenary.nvim', 'jbyuki/nabla.nvim'} + } require('plug._cmp') -- Automatically set up your configuration after cloning packer.nvim