/jot.nvim

A simple plugin to open your notes easily within a running neovim instance

Primary LanguageLuaGNU General Public License v3.0GPL-3.0

Jot.nvim

Jot.nvim is a neovim plugin to quickly access your notes from anywhere you are.

jot-demo

Installation

Using packer.nvim

use { 'hisbaan/jot.nvim', requires = 'nvim-lua/plenary.nvim' }

Setup

Put the following in your init.lua to setup. The options displayed are the defaults and can be changed.

-- init.lua
require('jot').setup({
    search_dir = "~/Documents/",
    search_depth = 5,
    hide_search_dir = false,
    post_open_hook = function() end,
})

To call the plugin run the Jot command. Alternatively, you can use require('jot').search().

To set this to a keybinding, you can use nvim_set_keymap

-- init.lua
vim.api.nvim_set_keymap('n', '<leader>j', '<Cmd>Jot<CR>', { noremap = true, silent = true })