Skip to content

Commit

Permalink
feat: highlight preview as bibtext
Browse files Browse the repository at this point in the history
  • Loading branch information
jmbuhr committed Mar 14, 2024
1 parent e6ae328 commit 1388899
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lua/zotero/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ M.picker = function(opts)
local bib_entry = bib.entry_to_bib_entry(entry)
local lines = vim.split(bib_entry, '\n')
vim.api.nvim_buf_set_lines(bufnr, 0, -1, false, lines)
vim.api.nvim_set_option_value('filetype', 'bibtex', { buf = bufnr })
end,
}
end,
Expand Down

0 comments on commit 1388899

Please sign in to comment.