Skip to content

Commit

Permalink
Merge branch 'main' of github.com:jmbuhr/telescope-zotero.nvim
Browse files Browse the repository at this point in the history
  • Loading branch information
jmbuhr committed Mar 24, 2024
2 parents 3a60bbe + 30addd7 commit 766fa9f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 7 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Changelog

## [1.2.1](https://github.com/jmbuhr/telescope-zotero.nvim/compare/v1.2.0...v1.2.1) (2024-03-23)


### Bug Fixes

* correct plugin url in readme. refs [#5](https://github.com/jmbuhr/telescope-zotero.nvim/issues/5) ([b616a5f](https://github.com/jmbuhr/telescope-zotero.nvim/commit/b616a5f1d2671618ed830090e9f9e39bf2ec722b))

## [1.2.0](https://github.com/jmbuhr/telescope-zotero.nvim/compare/v1.1.0...v1.2.0) (2024-03-16)


Expand Down
15 changes: 8 additions & 7 deletions doc/telescope-zotero.nvim.txt
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ Add to your telescope config, e.g. in lazy.nvim
{ 'kkharji/sqlite.lua' },
},
-- default opts shown
-- i.e. if you want to use them
-- you can just set opts = {}
opts = {
zotero_db_path = '~/Zotero/zotero.sqlite',
better_bibtex_db_path = '~/Zotero/better-bibtex.sqlite',
Expand All @@ -53,31 +55,30 @@ Add to your telescope config, e.g. in lazy.nvim
insert_key_formatter = function(citekey)
return '@' .. citekey
end,
locate_bib = bib.locate_quarto_bib,
locate_bib = require'zotero.bib'.locate_quarto_bib,
},
tex = {
insert_key_formatter = function(citekey)
return '\\cite{' .. citekey .. '}'
end,
locate_bib = bib.locate_tex_bib,
locate_bib = require'zotero.bib'.locate_tex_bib,
},
plaintex = {
insert_key_formatter = function(citekey)
return '\\cite{' .. citekey .. '}'
end,
locate_bib = bib.locate_tex_bib,
locate_bib = require'zotero.bib'.locate_tex_bib,
},
-- fallback for unlisted filetypes
default = {
insert_key_formatter = function(citekey)
return '@' .. citekey
end,
locate_bib = bib.locate_quarto_bib,
locate_bib = require'zotero.bib'.locate_quarto_bib,
},
},

}
},
}
},
},
config = function()
local telescope = require 'telescope'
Expand Down

0 comments on commit 766fa9f

Please sign in to comment.