Skip to content

Tejada-Omar/notes-compile.nvim

Repository files navigation

notes-compile.nvim

WORK IN PROGRESS

A Neovim plugin to compile notes into pdf by recursively searching in your current working directory for markdown files and opening them in zathura

Getting Started

Dependencies

Installation

Using packer.nvim

use {
  'Tejada-Omar/notes-compile.nvim',
  requires = { 'nvim-lua/plenary.nvim' }
}

Customization

No Configuation

require('notes-compile').setup()

Default Configuration

require('notes-compile').setup {
  file_name = 'master.pdf',
  skip = { 'readme.md' },
  events = {},
  pandoc_args = {
    '--toc',
    '-N',
    -- Table to represent '-V KEY[=VAL]'
    { '-V', 'documentclass:extarticle' },
    { '-V', 'geometry:margin=1cm' },
    { '-V', 'fontsize=14pt' }
  },
  zathura_integration = false,
}

User Commands

Note that autocmds are automatically placed in augroup notes-compile

Event Description
NotesCompile Compile all markdown notes in cwd and open zathura
NotesCompileToggle Toggle on/off autocmd for event(s) (default: BufWritePost)
NotesCompileToggleOn Toggle on autocmd for event(s) (default: BufWritePost)
NotesCompileToggleOff Toggle off all autocmds
NotesCompileShowAttached Prints attached events

About

A Neovim plugin to compile recursively search for markdown notes and use pandoc to compile them to a pdf

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages